mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #16991: Add a C implementation of collections.OrderedDict.
This commit is contained in:
parent
3979323ca3
commit
47db71756d
12 changed files with 2860 additions and 195 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue