mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
make sure dict view types are initialized
This commit is contained in:
parent
cea632ece5
commit
db87c99444
1 changed files with 9 additions and 0 deletions
|
@ -1607,6 +1607,15 @@ _Py_ReadyTypes(void)
|
|||
if (PyType_Ready(&PyDict_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict type");
|
||||
|
||||
if (PyType_Ready(&PyDictKeys_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict keys type");
|
||||
|
||||
if (PyType_Ready(&PyDictValues_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict values type");
|
||||
|
||||
if (PyType_Ready(&PyDictItems_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict items type");
|
||||
|
||||
if (PyType_Ready(&PyODict_Type) < 0)
|
||||
Py_FatalError("Can't initialize OrderedDict type");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue