FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-105927: Deprecate PyWeakref_GetObject() function by vstinner · Pull Request #106006 · python/cpython · GitHub

/ cpython Public

gh-105927: Deprecate PyWeakref_GetObject() function - #106006

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:deprecate_weakref_getobject
Jun 26, 2023
Merged

gh-105927: Deprecate PyWeakref_GetObject() function#106006
vstinner merged 1 commit into
python:mainfrom
vstinner:deprecate_weakref_getobject

Conversation

vstinner commented Jun 23, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.


📚 Documentation preview 📚: https://cpython-previews--106006.org.readthedocs.build/

Copy link
Copy Markdown
Member Author

cc @erlend-aasland @encukou @hugovk

Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.
vstinner force-pushed the deprecate_weakref_getobject branch from cded796 to 5753693 Compare June 23, 2023 06:45
Comment thread Modules/_testcapimodule.c
Comment on lines +3379 to +3380
_Py_COMP_DIAG_PUSH
_Py_COMP_DIAG_IGNORE_DEPR_DECLS

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I did not know these macros; TIL!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It's very useful to write tests on deprecated APIs.

vstinner merged commit c075a19 into python:main Jun 26, 2023
vstinner deleted the deprecate_weakref_getobject branch June 26, 2023 10:10

encukou commented Jun 26, 2023

Copy link
Copy Markdown
Member

Why 3.15? I don't see any reason to use the minimum allowed deprecation period here.

Copy link
Copy Markdown
Member Author

Why 3.15? I don't see any reason to use the minimum allowed deprecation period here.

Borrowed references as bad: see the issue for the rationale.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL