initialize more global type objects (closes #16369)
This commit is contained in:
parent
1625d88709
commit
6da3ed63d8
|
@ -52,6 +52,9 @@ init_symtable(void)
|
|||
{
|
||||
PyObject *m;
|
||||
|
||||
if (PyType_Ready(&PySTEntry_Type) < 0)
|
||||
return;
|
||||
|
||||
m = Py_InitModule("_symtable", symtable_methods);
|
||||
if (m == NULL)
|
||||
return;
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -8847,6 +8847,12 @@ void _PyUnicode_Init(void)
|
|||
);
|
||||
|
||||
PyType_Ready(&EncodingMapType);
|
||||
|
||||
if (PyType_Ready(&PyFieldNameIter_Type) < 0)
|
||||
Py_FatalError("Can't initialize field name iterator type");
|
||||
|
||||
if (PyType_Ready(&PyFormatterIter_Type) < 0)
|
||||
Py_FatalError("Can't initialize formatter iter type");
|
||||
}
|
||||
|
||||
/* Finalize the Unicode implementation */
|
||||
|
|
Loading…
Reference in New Issue