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

[3.14] GH-91636: Clear weakrefs created by finalizers. (GH-136401)#144444

Merged
hugovk merged 2 commits into
python:3.14python/cpython:3.14from
sergey-miryanov:backport-b6b99bf-3.14sergey-miryanov/cpython:backport-b6b99bf-3.14Copy head branch name to clipboard
Mar 12, 2026
Merged

[3.14] GH-91636: Clear weakrefs created by finalizers. (GH-136401)#144444
hugovk merged 2 commits into
python:3.14python/cpython:3.14from
sergey-miryanov:backport-b6b99bf-3.14sergey-miryanov/cpython:backport-b6b99bf-3.14Copy head branch name to clipboard

Conversation

@sergey-miryanov

@sergey-miryanov sergey-miryanov commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Weakrefs to unreachable garbage that are created during running of finalizers need to be cleared. This avoids exposing objects that have tp_clear called on them to Python-level code. (cherry picked from commit b6b99bf)

…H-136401)

Weakrefs to unreachable garbage that are created during running of
finalizers need to be cleared.  This avoids exposing objects that
have `tp_clear` called on them to Python-level code.
(cherry picked from commit b6b99bf)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
@gpshead

gpshead commented Mar 5, 2026

Copy link
Copy Markdown
Member

assigning to @hugovk as RM to decide if this gets backported. #144214 is the PR for 3.13 that should also be merged if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants

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