Fix generation and build of python classes for 3.9

This commit is contained in:
markus
2021-04-26 12:36:36 -07:00
committed by wwmayer
parent 5a5b20df56
commit aa0dcff74f
2 changed files with 12 additions and 0 deletions

View File

@@ -105,7 +105,11 @@ static PyTypeObject PyBaseProxyType = {
sizeof(PyBaseProxy), /*tp_basicsize*/
0, /*tp_itemsize*/
PyBaseProxy_dealloc, /*tp_dealloc*/
#if PY_VERSION_HEX >= 0x03090000
0, /*tp_vectorcall_offset*/
#else
nullptr, /*tp_print*/
#endif
nullptr, /*tp_getattr*/
nullptr, /*tp_setattr*/
nullptr, /*tp_compare*/
@@ -164,7 +168,11 @@ PyTypeObject PyObjectBase::Type = {
0, /*tp_itemsize*/
/* --- methods ---------------------------------------------- */
PyDestructor, /*tp_dealloc*/
#if PY_VERSION_HEX >= 0x03090000
0, /*tp_vectorcall_offset*/
#else
nullptr, /*tp_print*/
#endif
nullptr, /*tp_getattr*/
nullptr, /*tp_setattr*/
nullptr, /*tp_compare*/