Skip to content
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-111926: Simplify weakref/proxy creation #116825

Closed
wants to merge 1 commit into from

Conversation

mpage
Copy link
Contributor

@mpage mpage commented Mar 14, 2024

As of 3.12, allocation no longer triggers GC. This allows us to stop having to recompute the "canonical" callback-less ref post allocation.

@mpage mpage force-pushed the gh-111926-simplify-weakref-creation branch 2 times, most recently from 4944b5f to eb7f65d Compare March 14, 2024 21:57
Since 3.12 allocating a GC object cannot immediately trigger GC.
@mpage mpage force-pushed the gh-111926-simplify-weakref-creation branch from ac0e684 to fed6df3 Compare March 14, 2024 22:38
@mpage mpage closed this Mar 14, 2024
@mpage mpage deleted the gh-111926-simplify-weakref-creation branch March 14, 2024 22:41
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.

1 participant