Add types removed by mistake by the commit adding
_PyTypes_FiniTypes().
Move also PyBool_Type at the end, since it depends on PyLong_Type.
PyBytes_Type and PyUnicode_Type no longer depend explicitly on
PyBaseObject_Type: it's the default of PyType_Ready().
bytes_methods, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
- &PyBaseObject_Type, /* tp_base */
+ 0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
static PyTypeObject* static_types[] = {
// base types
&PyAsyncGen_Type,
- &PyBool_Type,
&PyByteArrayIter_Type,
&PyByteArray_Type,
+ &PyBytesIter_Type,
+ &PyBytes_Type,
&PyCFunction_Type,
&PyCallIter_Type,
&PyCapsule_Type,
&PyDict_Type,
&PyEllipsis_Type,
&PyEnum_Type,
+ &PyFloat_Type,
&PyFrame_Type,
&PyFrozenSet_Type,
&PyFunction_Type,
&PyListRevIter_Type,
&PyList_Type,
&PyLongRangeIter_Type,
+ &PyLong_Type,
&PyMemberDescr_Type,
&PyMemoryView_Type,
&PyMethodDescr_Type,
&PyStdPrinter_Type,
&PySuper_Type,
&PyTraceBack_Type,
+ &PyTupleIter_Type,
+ &PyTuple_Type,
+ &PyUnicodeIter_Type,
+ &PyUnicode_Type,
&PyWrapperDescr_Type,
&Py_GenericAliasType,
&_PyAnextAwaitable_Type,
// subclasses: _PyTypes_FiniTypes() deallocates them before their base
// class
+ &PyBool_Type, // base=&PyLong_Type
&PyCMethod_Type, // base=&PyCFunction_Type
&PyODictItems_Type, // base=&PyDictItems_Type
&PyODictKeys_Type, // base=&PyDictKeys_Type
unicode_methods, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
- &PyBaseObject_Type, /* tp_base */
+ 0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */