diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-11-06 21:01:07 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-11-06 21:01:07 (GMT) |
commit | db87c99444315b4421da6d27dc666dd028146777 (patch) | |
tree | daf845427c7eae2ec9ffc961e7039204348c84d3 /Objects/object.c | |
parent | cea632ece5f127f10f6b831fc8dfc72acab181d7 (diff) | |
download | cpython-db87c99444315b4421da6d27dc666dd028146777.zip cpython-db87c99444315b4421da6d27dc666dd028146777.tar.gz cpython-db87c99444315b4421da6d27dc666dd028146777.tar.bz2 |
make sure dict view types are initialized
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 9 |
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"); |