]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Optimize hash(frozendict) (#144919)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Feb 2026 17:39:33 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Feb 2026 17:39:33 +0000 (18:39 +0100)
commit8e211b1ca93401d46009b556d648d12c679a132b
treee77ba8741df5fe0d97a9bfe1689e84328a557208
parent6577d870b0cb82baf540f4bcf49c01d68204e468
gh-141510: Optimize hash(frozendict) (#144919)

hash(frozendict) no longer creates a temporary items view and a
temporary frozenset object.

Copy frozenset_hash() code to frozendict_hash().
Lib/test/test_dict.py
Objects/dictobject.c
Objects/setobject.c