Skip to content

gh-111926: Simplify weakref/proxy creation - #116825

Closed
mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-111926-simplify-weakref-creation
Closed

gh-111926: Simplify weakref/proxy creation#116825
mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-111926-simplify-weakref-creation

Conversation

@mpage

@mpagempage commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

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
mpageforce-pushed the gh-111926-simplify-weakref-creation branch 2 times, most recently from 4944b5f to eb7f65dCompareMarch 14, 2024 21:57
Since 3.12 allocating a GC object cannot immediately trigger GC.
@mpage
mpageforce-pushed the gh-111926-simplify-weakref-creation branch from ac0e684 to fed6df3CompareMarch 14, 2024 22:38
@mpagempage closed this Mar 14, 2024
@mpage
mpage deleted the gh-111926-simplify-weakref-creation branch March 14, 2024 22:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@mpage