initialize more global type objects (closes #16369)

This commit is contained in:
Benjamin Peterson 2012-10-30 23:21:10 -04:00
parent 1625d88709
commit 6da3ed63d8
3 changed files with 21 additions and 0 deletions

View file

@ -2198,6 +2198,18 @@ _Py_ReadyTypes(void)
if (PyType_Ready(&PyFile_Type) < 0)
Py_FatalError("Can't initialize file type");
if (PyType_Ready(&PyCapsule_Type) < 0)
Py_FatalError("Can't initialize capsule type");
if (PyType_Ready(&PyCell_Type) < 0)
Py_FatalError("Can't initialize cell type");
if (PyType_Ready(&PyCallIter_Type) < 0)
Py_FatalError("Can't initialize call iter type");
if (PyType_Ready(&PySeqIter_Type) < 0)
Py_FatalError("Can't initialize sequence iterator type");
}