]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Fix frozendict.fromkeys() for dict subclasses (#144962)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Feb 2026 17:03:04 +0000 (18:03 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Feb 2026 17:03:04 +0000 (18:03 +0100)
commit16ccdbc50a3034f9c0e5ea6845356281b2ad04bd
tree579df78921b377434293654169f7306c12b6c5c5
parent3e2f5c133f37f13f627404f3cbd54a5fc163887a
gh-141510: Fix frozendict.fromkeys() for dict subclasses (#144962)

Copy also the dictionary if a dict subclass returns a frozendict.
Lib/test/test_dict.py
Objects/dictobject.c