-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
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 鈥淪ign up for GitHub鈥, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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! |
鈥ed-weakrefs-133644
鈥ed-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 |


馃摎 Documentation preview 馃摎: https://cpython-previews--133657.org.readthedocs.build/