Skip to content

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