mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #16991: Add a C implementation of collections.OrderedDict.
This commit is contained in:
parent
0a3297d7d4
commit
96c6af9b20
12 changed files with 2860 additions and 195 deletions
|
|
@ -1607,6 +1607,21 @@ _Py_ReadyTypes(void)
|
|||
if (PyType_Ready(&PyDict_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict type");
|
||||
|
||||
if (PyType_Ready(&PyODict_Type) < 0)
|
||||
Py_FatalError("Can't initialize OrderedDict type");
|
||||
|
||||
if (PyType_Ready(&PyODictKeys_Type) < 0)
|
||||
Py_FatalError("Can't initialize odict_keys type");
|
||||
|
||||
if (PyType_Ready(&PyODictItems_Type) < 0)
|
||||
Py_FatalError("Can't initialize odict_items type");
|
||||
|
||||
if (PyType_Ready(&PyODictValues_Type) < 0)
|
||||
Py_FatalError("Can't initialize odict_values type");
|
||||
|
||||
if (PyType_Ready(&PyODictIter_Type) < 0)
|
||||
Py_FatalError("Can't initialize odict_keyiterator type");
|
||||
|
||||
if (PyType_Ready(&PySet_Type) < 0)
|
||||
Py_FatalError("Can't initialize set type");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue