We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 836ad73 commit 02fe87fCopy full SHA for 02fe87f
1 file changed
Objects/dictobject.c
@@ -968,7 +968,9 @@ clone_combined_dict_keys(PyDictObject *orig)
968
assert(orig->ma_keys != Py_EMPTY_KEYS);
969
assert(orig->ma_keys->dk_refcnt == 1);
970
971
- ASSERT_DICT_LOCKED(orig);
+ if (!PyFrozenDict_Check(orig)) {
972
+ ASSERT_DICT_LOCKED(orig);
973
+ }
974
975
size_t keys_size = _PyDict_KeysSize(orig->ma_keys);
976
PyDictKeysObject *keys = PyMem_Malloc(keys_size);
0 commit comments