Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Nov 26, 2025

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

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>
@gpsheadgpshead enabled auto-merge (squash) November 29, 2025 07:32
@gpsheadgpshead disabled auto-merge November 29, 2025 07:34
@gpsheadgpshead merged commit fed2af6 into python:3.14Nov 29, 2025
53 checks passed
@hugovk
Copy link
Member

hugovk commented Dec 1, 2025

We decided last week in the Discord to skip this for 3.14.1 and re-consider for 3.14.2, as it's been around for a long time and skipping another point release isn't a big deal.

Sorry, I should have commented on this PR before it got merged :)

I'll open a revert.

@bedevere-app
Copy link

GH-142152 is a backport of this pull request to the 3.14 branch.

@miss-islingtonmiss-islington deleted the backport-b6b99bf-3.14 branch January 2, 2026 18:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@hugovk@gpshead@nascheme