]> granicus.if.org Git - python/commitdiff
make sure dict view types are initialized
authorBenjamin Peterson <benjamin@python.org>
Sun, 6 Nov 2016 21:01:07 +0000 (13:01 -0800)
committerBenjamin Peterson <benjamin@python.org>
Sun, 6 Nov 2016 21:01:07 +0000 (13:01 -0800)
Objects/object.c

index 802488900851d34b813b87b436bfa49b8e46e577..d21fd906df8cdbab1d389ffaa0285360b042bb53 100644 (file)
@@ -1607,6 +1607,15 @@ _Py_ReadyTypes(void)
     if (PyType_Ready(&PyDict_Type) < 0)
         Py_FatalError("Can't initialize dict type");
 
+    if (PyType_Ready(&PyDictKeys_Type) < 0)
+        Py_FatalError("Can't initialize dict keys type");
+
+    if (PyType_Ready(&PyDictValues_Type) < 0)
+        Py_FatalError("Can't initialize dict values type");
+
+    if (PyType_Ready(&PyDictItems_Type) < 0)
+        Py_FatalError("Can't initialize dict items type");
+
     if (PyType_Ready(&PyODict_Type) < 0)
         Py_FatalError("Can't initialize OrderedDict type");