]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: No longer accept frozendict in PyDict_Copy() (#145542)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Mar 2026 14:26:54 +0000 (15:26 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 14:26:54 +0000 (15:26 +0100)
commit0c29f83caa053c437131972147935c02e4e06630
tree156e0bd61c7087e9d9bfdd8754c82395de8a0761
parentdbe0007ab2ff679c85d88e62fb875437b2dc2522
gh-141510: No longer accept frozendict in PyDict_Copy() (#145542)

Rename _PyDict_Copy() to anydict_copy().

Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().
Doc/c-api/dict.rst
Lib/test/test_capi/test_dict.py
Objects/clinic/dictobject.c.h
Objects/dictobject.c