-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-120080: Accept None
as a valid argument for direct call of the int.__round__
#120088
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Nikita Sobolev <[email protected]>
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.
:)
Co-authored-by: Nikita Sobolev <[email protected]>
Thanks for the review, Nikita! |
…of the ``int.__round__`` (pythonGH-120088) (cherry picked from commit 57ad769) Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
Sorry, @Eclips4 and @vstinner, I could not cleanly backport this to
|
GH-120197 is a backport of this pull request to the 3.13 branch. |
I merged the change. Thanks @Eclips4! I don't think that such change deserves to be backported. It's a minor issue. While @serhiy-storchaka disagrees with the change: #120080 (comment), IMO it makes the code more consistent. With this change, Note: I would prefer to have Internally, |
|
The tests can be decorated with |
…of the ``int.__round__`` (python#120088) Co-authored-by: Nikita Sobolev <[email protected]>
…of the ``int.__round__`` (python#120088) Co-authored-by: Nikita Sobolev <[email protected]>
int.__round__(None)
is not supported #120080