summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-11-06 21:01:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-11-06 21:01:07 (GMT)
commitdb87c99444315b4421da6d27dc666dd028146777 (patch)
treedaf845427c7eae2ec9ffc961e7039204348c84d3
parentcea632ece5f127f10f6b831fc8dfc72acab181d7 (diff)
downloadcpython-db87c99444315b4421da6d27dc666dd028146777.zip
cpython-db87c99444315b4421da6d27dc666dd028146777.tar.gz
cpython-db87c99444315b4421da6d27dc666dd028146777.tar.bz2
make sure dict view types are initialized
-rw-r--r--Objects/object.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 8024889..d21fd90 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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");