-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
bpo-37999: Fix outdated __int__ and nb_int references in comments #20449
bpo-37999: Fix outdated __int__ and nb_int references in comments #20449
Conversation
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.
Nice to catch it!
@@ -144,13 +143,15 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate. | |||
.. deprecated:: 3.8 | |||
Using :meth:`__int__` is deprecated. | |||
|
|||
.. versionchanged:: 3.10 | |||
This function will no longer use :meth:`__int__`. |
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.
We usually also remove corresponding deprecated
directives when the deprecated feature has been removed. So I suggest to remove deprecated
few lines above.
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.
Done!
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 PR fixes some out-of-date comments in
longobject.c
.EDIT: updated to also remove outdated mentions of
__int__
from the C-API documentation.See also #15636.
https://bugs.python.org/issue37999