summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-28 20:17:06 (GMT)
committerGitHub <noreply@github.com>2021-10-28 20:17:06 (GMT)
commitfef54abf5fa3bf3d3cdeb2cba7a2921d204867c6 (patch)
tree40c40c27a270e0f0cce177b7f89a6c3887569d52 /Doc/reference
parentfb80aede6ab5d10297b787526657b1a6e20a706a (diff)
downloadcpython-fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6.zip
cpython-fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6.tar.gz
cpython-fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6.tar.bz2
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)
It should be noted that this part of the documentation is redundant with function.rst's documentation of int. This one was correctly updated with Python 3.8. (cherry picked from commit d9c1868c25ec6466e8d8ae21fe9315a8a03836ab) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 310167e..195e8c2 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2541,8 +2541,8 @@ left undefined.
return the value of the object truncated to an :class:`~numbers.Integral`
(typically an :class:`int`).
- If :meth:`__int__` is not defined then the built-in function :func:`int`
- falls back to :meth:`__trunc__`.
+ The built-in function :func:`int` falls back to :meth:`__trunc__` if neither
+ :meth:`__int__` nor :meth:`__index__` is defined.
.. _context-managers: