summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-28 20:02:07 (GMT)
committerGitHub <noreply@github.com>2021-10-28 20:02:07 (GMT)
commit76658e5bdbdf57464f4b43f1625c02c2ba4222dd (patch)
tree58ec15f8e488cefa68da1a96a4a66dcebd7832c2 /Doc
parentf19c1a115f782036edac306de0f3f9968c1e1fd6 (diff)
downloadcpython-76658e5bdbdf57464f4b43f1625c02c2ba4222dd.zip
cpython-76658e5bdbdf57464f4b43f1625c02c2ba4222dd.tar.gz
cpython-76658e5bdbdf57464f4b43f1625c02c2ba4222dd.tar.bz2
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29287)
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')
-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 20d6e32..92058aa 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2507,8 +2507,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: