]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (#152067)
authorVictor Stinner <vstinner@python.org>
Thu, 25 Jun 2026 18:06:07 +0000 (20:06 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2026 18:06:07 +0000 (18:06 +0000)
commit55bc3126e0a09a8e940da73e51ab1ffeecaf02d4
treebfe73acc3069e883d3ac3fe44c9ff66c7115722b
parentbef570622263ecd58563f0474693c19c8545de73
gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (#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.

Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Doc/library/stdtypes.rst
Lib/test/test_dict.py
Misc/NEWS.d/next/Core_and_Builtins/2026-06-24-13-36-31.gh-issue-151722.lWKfE1.rst [new file with mode: 0644]
Objects/dictobject.c