mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-33462: Add __reversed__ to dict and dict views (GH-6827)
This commit is contained in:
parent
16c8a53490
commit
6531bf6309
10 changed files with 346 additions and 24 deletions
|
@ -1790,6 +1790,15 @@ _Py_ReadyTypes(void)
|
|||
if (PyType_Ready(&PyDictItems_Type) < 0)
|
||||
Py_FatalError("Can't initialize dict items type");
|
||||
|
||||
if (PyType_Ready(&PyDictRevIterKey_Type) < 0)
|
||||
Py_FatalError("Can't initialize reversed dict keys type");
|
||||
|
||||
if (PyType_Ready(&PyDictRevIterValue_Type) < 0)
|
||||
Py_FatalError("Can't initialize reversed dict values type");
|
||||
|
||||
if (PyType_Ready(&PyDictRevIterItem_Type) < 0)
|
||||
Py_FatalError("Can't initialize reversed 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