Add initialisers for additional members in PyHeapTypeObject

(builtin mode) for Python-3.11 - _ht_tpname, _spec_cache.
This commit is contained in:
William S Fulton 2022-08-01 07:51:04 +01:00
commit 1d56bc6b85
3 changed files with 16 additions and 1 deletions

View file

@ -426,7 +426,7 @@ SwigPyBuiltin_ThisClosure (PyObject *self, void *SWIGUNUSEDPARM(closure)) {
SWIGINTERN void
SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
{
#if PY_VERSION_HEX >= 0x030900A4
#if PY_VERSION_HEX >= 0x030900a4
Py_SET_TYPE(type, metatype);
#else
Py_TYPE(type) = metatype;