summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Milchior <arthur@milchior.fr>2021-10-28 19:48:37 (GMT)
committerGitHub <noreply@github.com>2021-10-28 19:48:37 (GMT)
commitd9c1868c25ec6466e8d8ae21fe9315a8a03836ab (patch)
tree30d34be04ce02c6920d332aec1c61b8bc4454431
parentcd30613165add99c5d0c4592d1a3f4243f09797b (diff)
downloadcpython-d9c1868c25ec6466e8d8ae21fe9315a8a03836ab.zip
cpython-d9c1868c25ec6466e8d8ae21fe9315a8a03836ab.tar.gz
cpython-d9c1868c25ec6466e8d8ae21fe9315a8a03836ab.tar.bz2
bpo-45583: Correct datamodel documentation of int() (GH-29182)
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.
-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 f1334f0..a6eee22 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2577,8 +2577,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: