diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-29 22:21:39 -0600 |
|---|---|---|
| committer | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-29 22:21:39 -0600 |
| commit | 96c6af9b207c188c52ac53ce87bb7f2dea3f328b (patch) | |
| tree | c556c00510282cac20410e324505ff5b257874c6 /Objects/object.c | |
| parent | 0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46 (diff) | |
| download | cpython-git-96c6af9b207c188c52ac53ce87bb7f2dea3f328b.tar.gz | |
Issue #16991: Add a C implementation of collections.OrderedDict.
Diffstat (limited to 'Objects/object.c')
| -rw-r--r-- | Objects/object.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index c1d7a05e41..be12be50bd 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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"); |
