From db87c99444315b4421da6d27dc666dd028146777 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 6 Nov 2016 13:01:07 -0800 Subject: make sure dict view types are initialized --- Objects/object.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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"); -- cgit v0.12