Skip to content

gh-141510: No longer accept frozendict in PyDict_Copy() - #145542

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:dict_copy3
Mar 5, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:dict_copy3

Conversation

@vstinner

@vstinner vstinner commented Mar 5, 2026 •

Copy link
Copy Markdown
Member

Rename _PyDict_Copy() to anydict_copy().


📚 Documentation preview 📚: https://cpython-previews--145542.org.readthedocs.build/

Rename _PyDict_Copy() to anydict_copy().
Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().
@vstinner
vstinner merged commit 0c29f83 into python:main Mar 5, 2026
46 checks passed
@vstinner
vstinner deleted the dict_copy3 branch March 5, 2026 14:26
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…#145542)

Rename _PyDict_Copy() to anydict_copy().

Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant