Skip to content

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

Merged
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-b6b99bf-3.14
Nov 29, 2025
Merged

gpshead merged 1 commit into
python:3.14from
miss-islington:backport-b6b99bf-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 26, 2025 •

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)

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

hugovk commented Dec 1, 2025 •

Copy link
Copy Markdown
Member

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

bedevere-app Bot commented Dec 1, 2025

Copy link
Copy Markdown

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

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

Labels

None yet

4 participants