Skip to content

Commit e8ea97f

Browse files
committed
merge 3.2 (#16369)
2 parents cc4bacf + c431128 commit e8ea97f

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

Modules/symtablemodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ PyInit__symtable(void)
6363
{
6464
PyObject *m;
6565

66+
if (PyType_Ready(&PySTEntry_Type) < 0)
67+
return NULL;
68+
6669
m = PyModule_Create(&symtablemodule);
6770
if (m == NULL)
6871
return NULL;

Objects/object.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,30 @@ _Py_ReadyTypes(void)
17101710

17111711
if (PyType_Ready(&_PyNamespace_Type) < 0)
17121712
Py_FatalError("Can't initialize namespace type");
1713+
1714+
if (PyType_Ready(&PyCapsule_Type) < 0)
1715+
Py_FatalError("Can't initialize capsule type");
1716+
1717+
if (PyType_Ready(&PyLongRangeIter_Type) < 0)
1718+
Py_FatalError("Can't initialize long range iterator type");
1719+
1720+
if (PyType_Ready(&PyCell_Type) < 0)
1721+
Py_FatalError("Can't initialize cell type");
1722+
1723+
if (PyType_Ready(&PyInstanceMethod_Type) < 0)
1724+
Py_FatalError("Can't initialize instance method type");
1725+
1726+
if (PyType_Ready(&PyClassMethodDescr_Type) < 0)
1727+
Py_FatalError("Can't initialize class method descr type");
1728+
1729+
if (PyType_Ready(&PyMethodDescr_Type) < 0)
1730+
Py_FatalError("Can't initialize method descr type");
1731+
1732+
if (PyType_Ready(&PyCallIter_Type) < 0)
1733+
Py_FatalError("Can't initialize call iter type");
1734+
1735+
if (PyType_Ready(&PySeqIter_Type) < 0)
1736+
Py_FatalError("Can't initialize sequence iterator type");
17131737
}
17141738

17151739

Objects/unicodeobject.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14167,6 +14167,12 @@ int _PyUnicode_Init(void)
1416714167

1416814168
PyType_Ready(&EncodingMapType);
1416914169

14170+
if (PyType_Ready(&PyFieldNameIter_Type) < 0)
14171+
Py_FatalError("Can't initialize field name iterator type");
14172+
14173+
if (PyType_Ready(&PyFormatterIter_Type) < 0)
14174+
Py_FatalError("Can't initialize formatter iter type");
14175+
1417014176
#ifdef HAVE_MBCS
1417114177
winver.dwOSVersionInfoSize = sizeof(winver);
1417214178
if (!GetVersionEx((OSVERSIONINFO*)&winver)) {

0 commit comments

Comments
 (0)