Fix generation and build of python classes for 3.9
This commit is contained in:
@@ -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*/
|
||||
|
||||
@@ -285,7 +285,11 @@ PyTypeObject @self.export.Name@::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*/
|
||||
|
||||
Reference in New Issue
Block a user