Skip to content

Commit

Permalink
bpo-45583: Correct datamodel documentation of int() (pythonGH-29182)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Arthur-Milchior authored Oct 28, 2021
1 parent cd30613 commit d9c1868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d9c1868

Please sign in to comment.