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

Appearance settings

gh-111926: Simplify weakref/proxy creation#116825

Closed
mpage wants to merge 1 commit into
python:mainpython/cpython:mainfrom
mpage:gh-111926-simplify-weakref-creationmpage/cpython:gh-111926-simplify-weakref-creationCopy head branch name to clipboard
Closed

gh-111926: Simplify weakref/proxy creation#116825
mpage wants to merge 1 commit into
python:mainpython/cpython:mainfrom
mpage:gh-111926-simplify-weakref-creationmpage/cpython:gh-111926-simplify-weakref-creationCopy head branch name to clipboard

Conversation

@mpage

@mpage mpage 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 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.