Skip to content

[3.15] gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (GH-152067) - #152225

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-55bc312-3.15
Jun 25, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-55bc312-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

_PyDict_FromKeys() now creates a frozendict copy which is
not tracked by the GC.

dict_merge() no longer requires the dictionary to be tracked by the
GC.
(cherry picked from commit 55bc312)

Co-authored-by: Victor Stinner vstinner@python.org
Co-authored-by: Donghee Na donghee.na@python.org
Co-authored-by: Inada Naoki songofacandy@gmail.com

…mKeys() (pythonGH-152067)

_PyDict_FromKeys() now creates a frozendict copy which is
not tracked by the GC.

dict_merge() no longer requires the dictionary to be tracked by the
GC.
(cherry picked from commit 55bc312)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
@vstinner
vstinner merged commit 30f9c8a into python:3.15 Jun 25, 2026
50 checks passed
@miss-islington
miss-islington deleted the backport-55bc312-3.15 branch June 25, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants