bpo-33462: Add __reversed__ to dict and dict views (GH-6827)

This commit is contained in:
Rémi Lapeyre 2018-11-06 01:38:54 +01:00 committed by INADA Naoki
parent 16c8a53490
commit 6531bf6309
10 changed files with 346 additions and 24 deletions

View file

@ -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");