Skip to content
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

Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented May 27, 2020

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

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a 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__`.
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mdickinson mdickinson merged commit 20941de into python:master May 27, 2020
@mdickinson mdickinson deleted the fix/long-object-function-descriptions branch May 27, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants