]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Optimize frozendict(frozendict) (#145592)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Mar 2026 14:47:02 +0000 (15:47 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2026 14:47:02 +0000 (15:47 +0100)
commit0dfe649400a0b67318169ec813475f4949ad7b69
treeddc280b022009d6689a0b4d05f7732c828fcab9e
parent1564e231aae7afad5b9b19a277d1efff2b840ad2
gh-141510: Optimize frozendict(frozendict) (#145592)

Return the same object unmodified if it's exactly the frozendict
type.

Optimize also PyFrozenDict_New(frozendict).
Lib/test/test_capi/test_dict.py
Lib/test/test_dict.py
Objects/dictobject.c