-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-133644: remove PyWeakref_GetObject and PyWeakref_GET_OBJECT
#133657
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
gh-133644: remove PyWeakref_GetObject and PyWeakref_GET_OBJECT
#133657
Conversation
|
UPDATE: I excluded manually projects which refer to the functions without using them. I also excluded This change is a little bit scary: 30 projects in PyPI top 8,000 projects refer to these 2 functions:
|
Pillow only uses How does the list change if you exclude |
Oh correct, I modified my script to exclude
I modified the list to manually exclude projects which only refer to these functions without using them. I also used the updated script to exclude pythoncapi_compat.h which excludes Pillow. The number of impacts projects moved from 38 to 27, it's better! |
…ted-weakrefs-133644
…ted-weakrefs-133644
|
@vstinner, could you share your script, or run it again? It looks like the situation is much better now. |
|
The scripts:
A code search on
|
Cython is not affected, the matching line comes from a compatibility layer. It defines |
|
I found 4 projects (marked Others use
For
But it seems this might not be widely useful. |
|
@picnixz: Can you fix the merge conflict? |
|
Yes, I was waiting for a decision to be made before fixing it. Should I understand that we want to merge this PR soon? |
|
+1 for removing this in the first alpha. |
…ted-weakrefs-133644
|
(FTR, the reason why I put my PRs into draft sometimes is because I'm worried that I messed up my merge commit. That way, I'm sure that I don't notify users by mistake) |
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.
Ok, let's remove it as soon as possible in the 3.15 dev cycle.
📚 Documentation preview 📚: https://cpython-previews--133657.org.readthedocs.build/