Skip to content

Conversation

@sergey-miryanov
Copy link
Contributor

@sergey-miryanov sergey-miryanov commented Jan 24, 2026

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
Copy link
Member

gpshead commented Jan 25, 2026

I think this needs re-applying to 3.14 if we're going to do it for 3.13. it was removed (likely temporarily) from 3.14 as a risk mitigation for 3.14.1 (see issue and prs)

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.

2 participants