Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
bpo-45583: Correct datamodel.rst documentation of int()#29182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
the-knights-who-say-ni commentedOct 23, 2021
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed thePSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find abugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please followthe steps outlined in the CPython devguide to rectify this issue. You cancheck yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Arthur-Milchior commentedOct 23, 2021
I confirm I just signed the CLA. |
Uh oh!
There was an error while loading.Please reload this page.
Arthur-Milchior commentedOct 23, 2021
I think it would also need to be backported to 3.8, since it was when the change was introduced. I see only 3.9 and 3.10 labels added |
mdickinson left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This is fine - it's a net improvement on what's already there. But at a nitpick level, it still reads as somewhat ambiguous to me: in the qualifier
if :meth:
__int__and :meth:__index__are not defined
it's not immediately clear whether it refers to the situation whereneither of these is defined, or to the situation where they're notboth defined. You could possibly tighten it up as:
if neither :meth:
__int__nor :meth:__index__is defined
Approving, since this is good to go as-is - the above is just a suggestion.
mdickinson commentedOct 24, 2021
3.8 is in security-fix-only mode at this point, so we wouldn't normally backport docfixes to 3.8.
Unless@serhiy-storchaka objects, I think that's fine.@serhiy-storchaka has one or two other commits to his name. :-) |
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
Arthur-Milchior commentedOct 24, 2021
Thanks for the explanation. I admit that I'm just a Python user and didn't check the rules for what is ported or not to previous version. |
miss-islington commentedOct 28, 2021
Thanks@Arthur-Milchior for the PR, and@ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10. |
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>
bedevere-bot commentedOct 28, 2021
GH-29285 is a backport of this pull request to the3.10 branch. |
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>
bedevere-bot commentedOct 28, 2021
GH-29286 is a backport of this pull request to the3.9 branch. |
bedevere-bot commentedOct 28, 2021
GH-29287 is a backport of this pull request to the3.8 branch. |
)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>
)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>
)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>
Uh oh!
There was an error while loading.Please reload this page.
bpo-45583: Correct datamodel.rst documentation of int()
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
https://bugs.python.org/issue45583