Add initialisers for additional members in PyHeapTypeObject
(builtin mode) for Python-3.11 - _ht_tpname, _spec_cache.
This commit is contained in:
parent
54e7bb606e
commit
1d56bc6b85
3 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue