Skip to content

Comments

gh-141510: Check argument in PyDict_MergeFromSeq2()#145082

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:frozendict_mergefromseq2
Feb 21, 2026
Merged

gh-141510: Check argument in PyDict_MergeFromSeq2()#145082
vstinner merged 1 commit intopython:mainfrom
vstinner:frozendict_mergefromseq2

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Feb 21, 2026

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.

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.
@vstinner vstinner merged commit 6940c1d into python:main Feb 21, 2026
49 checks passed
@vstinner vstinner deleted the frozendict_mergefromseq2 branch February 21, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant