Skip to content

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

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

vstinner merged 1 commit into
python:mainfrom
vstinner:frozendict_mergefromseq2

Conversation

@vstinner

@vstinner vstinner commented Feb 21, 2026 •

Copy link
Copy Markdown
Member

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
45 checks passed
@vstinner
vstinner deleted the frozendict_mergefromseq2 branch February 21, 2026 16:21
brijkapadia pushed a commit to brijkapadia/cpython that referenced this pull request Feb 28, 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.
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant