mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
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 d9c1868c25)
Co-authored-by: Arthur Milchior <arthur@milchior.fr>
This commit is contained in:
parent
fb80aede6a
commit
fef54abf5f
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue