summaryrefslogtreecommitdiff
path: root/Objects/object.c
diff options
context:
space:
mode:
authorRémi Lapeyre <remi.lapeyre@henki.fr>2018-11-06 01:38:54 +0100
committerINADA Naoki <methane@users.noreply.github.com>2018-11-06 09:38:54 +0900
commit6531bf6309c8fda1954060a0fb5ea930b1efb656 (patch)
tree64debbc908a8d0dbd043d3114a536a750bb70339 /Objects/object.c
parent16c8a53490a22bd4fcde2efaf4694dd06ded882b (diff)
downloadcpython-git-6531bf6309c8fda1954060a0fb5ea930b1efb656.tar.gz
bpo-33462: Add __reversed__ to dict and dict views (GH-6827)
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index d3a97f6c5b..72e2684820 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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");