diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-30 04:21:39 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-30 04:21:39 (GMT) |
commit | 96c6af9b207c188c52ac53ce87bb7f2dea3f328b (patch) | |
tree | c556c00510282cac20410e324505ff5b257874c6 /Modules | |
parent | 0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46 (diff) | |
download | cpython-96c6af9b207c188c52ac53ce87bb7f2dea3f328b.zip cpython-96c6af9b207c188c52ac53ce87bb7f2dea3f328b.tar.gz cpython-96c6af9b207c188c52ac53ce87bb7f2dea3f328b.tar.bz2 |
Issue #16991: Add a C implementation of collections.OrderedDict.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 2b70b2b..c1fd8b9 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -2263,6 +2263,9 @@ PyInit__collections(void) Py_INCREF(&defdict_type); PyModule_AddObject(m, "defaultdict", (PyObject *)&defdict_type); + Py_INCREF(&PyODict_Type); + PyModule_AddObject(m, "OrderedDict", (PyObject *)&PyODict_Type); + if (PyType_Ready(&dequeiter_type) < 0) return NULL; Py_INCREF(&dequeiter_type); |