Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-105927: Deprecate PyWeakref_GetObject() function#106006

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:deprecate_weakref_getobject
Jun 26, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedJun 23, 2023
edited by github-actionsbot
Loading

Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.


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

@vstinner
Copy link
MemberAuthor

Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.
@vstinnervstinnerforce-pushed thedeprecate_weakref_getobject branch fromcded796 to5753693CompareJune 23, 2023 06:45
Comment on lines +3379 to +3380
_Py_COMP_DIAG_PUSH
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
Copy link
Contributor

Choose a reason for hiding this comment

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

I did not know these macros; TIL!

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

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

@vstinnervstinner merged commitc075a19 intopython:mainJun 26, 2023
@vstinnervstinner deleted the deprecate_weakref_getobject branchJune 26, 2023 10:10
@encukou
Copy link
Member

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

@vstinner
Copy link
MemberAuthor

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@vstinner@encukou@erlend-aasland@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp