From: Benjamin Peterson Date: Sun, 6 Nov 2016 21:01:07 +0000 (-0800) Subject: make sure dict view types are initialized X-Git-Tag: v3.6.0b4~142^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db87c99444315b4421da6d27dc666dd028146777;p=thirdparty%2FPython%2Fcpython.git make sure dict view types are initialized --- diff --git a/Objects/object.c b/Objects/object.c index 802488900851..d21fd906df8c 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");