Skip to content

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

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

gh-141510: No longer accept frozendict in PyDict_Copy()#145542
vstinner merged 2 commits intopython:mainfrom
vstinner:dict_copy3

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 5, 2026

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
50 checks passed
@vstinner vstinner deleted the dict_copy3 branch March 5, 2026 14:26
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