Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit13ee17b

Browse files
Arthur-Milchiormiss-islington
authored andcommitted
bpo-45583: Correct datamodel documentation of int() (pythonGH-29182)
It should be noted that this part of the documentation is redundant withfunction.rst's documentation of int. This one was correctly updated with Python 3.8.(cherry picked from commitd9c1868)Co-authored-by: Arthur Milchior <arthur@milchior.fr>
1 parent193504a commit13ee17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Doc/reference/datamodel.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,8 +2512,8 @@ left undefined.
25122512
return the value of the object truncated to an:class:`~numbers.Integral`
25132513
(typically an:class:`int`).
25142514

2515-
If:meth:`__int__` is not defined then thebuilt-in function:func:`int`
2516-
falls back to:meth:`__trunc__`.
2515+
Thebuilt-in function:func:`int` falls back to:meth:`__trunc__` if neither
2516+
:meth:`__int__` nor:meth:`__index__` is defined.
25172517

25182518

25192519
.. _context-managers:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp