]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Check argument in PyDict_MergeFromSeq2() (#145082)
authorVictor Stinner <vstinner@python.org>
Sat, 21 Feb 2026 16:21:43 +0000 (17:21 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 16:21:43 +0000 (17:21 +0100)
commit6940c1dc0c211670a4531bc13c10233e2fcf1335
treef2df814be30137612f2ad9d210078ae7fde6805c
parent770d354549914e3538e7db07e537dab17ece2610
gh-141510: Check argument in PyDict_MergeFromSeq2() (#145082)

PyDict_MergeFromSeq2() now fails with SystemError if the first
argument is not a dict or a dict subclass.

PyDict_Update(), PyDict_Merge() and _PyDict_MergeEx() no longer
accept frozendict.
Lib/test/test_capi/test_dict.py
Objects/dictobject.c