This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Documentation of int() in datamodel.rst is out of date
Type: Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Arthur-Milchior, docs@python, lukasz.langa, miss-islington, python-dev
Priority: normal Keywords: patch

Created on 2021-10-23 00:40 by Arthur-Milchior, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29182 merged python-dev, 2021-10-23 00:41
PR 29285 merged miss-islington, 2021-10-28 19:48
PR 29286 merged miss-islington, 2021-10-28 19:48
PR 29287 merged miss-islington, 2021-10-28 19:48
Messages (6)
msg404848 - (view) Author: Arthur Milchior (Arthur-Milchior) * Date: 2021-10-23 00:40
In 3.8, int() default implementation changed, using __index__() if it is available instead of __trunc__(). The file function.rst was updated accordingly, but the redundant information in datamodel.rst contained out of date information

I offer a correction in https://github.com/python/cpython/pull/29182 (but ideally it should be added back to 3.8 python documentation)
msg405242 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-28 19:48
New changeset d9c1868c25ec6466e8d8ae21fe9315a8a03836ab by Arthur Milchior in branch 'main':
bpo-45583: Correct datamodel documentation of int() (GH-29182)
https://github.com/python/cpython/commit/d9c1868c25ec6466e8d8ae21fe9315a8a03836ab
msg405253 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-28 20:02
New changeset 76658e5bdbdf57464f4b43f1625c02c2ba4222dd by Miss Islington (bot) in branch '3.8':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29287)
https://github.com/python/cpython/commit/76658e5bdbdf57464f4b43f1625c02c2ba4222dd
msg405257 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-28 20:17
New changeset fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6 by Miss Islington (bot) in branch '3.10':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)
https://github.com/python/cpython/commit/fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6
msg405258 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-28 20:17
New changeset 3767e0d94351653a34ba6a6914e57c5c231012b0 by Miss Islington (bot) in branch '3.9':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29286)
https://github.com/python/cpython/commit/3767e0d94351653a34ba6a6914e57c5c231012b0
msg405259 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-28 20:17
Thanks, Arthur! ✨ 🍰 ✨
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89746
2021-10-28 20:17:48lukasz.langasetstatus: open -> closed
versions: + Python 3.9, Python 3.10, Python 3.11, - Python 3.8
messages: + msg405259

resolution: fixed
stage: patch review -> resolved
2021-10-28 20:17:24lukasz.langasetmessages: + msg405258
2021-10-28 20:17:14lukasz.langasetmessages: + msg405257
2021-10-28 20:02:11lukasz.langasetmessages: + msg405253
2021-10-28 19:48:55miss-islingtonsetpull_requests: + pull_request27550
2021-10-28 19:48:51miss-islingtonsetpull_requests: + pull_request27549
2021-10-28 19:48:46miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request27548
2021-10-28 19:48:42lukasz.langasetnosy: + lukasz.langa
messages: + msg405242
2021-10-23 00:41:03python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request27456
stage: patch review
2021-10-23 00:40:05Arthur-Milchiorcreate