Py3.12: initialize field 'tp_watched'
This commit is contained in:
@@ -45,7 +45,9 @@
|
||||
virtual ~_class_(); \
|
||||
};
|
||||
|
||||
#if PY_VERSION_HEX >= 0x03090000
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
#elif PY_VERSION_HEX >= 0x03090000
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
#elif PY_VERSION_HEX >= 0x03080000
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
|
||||
@@ -84,6 +84,9 @@ PyTypeObject FeaturePythonPyT<FeaturePyT>::Type = {
|
||||
nullptr /*tp_finalize */
|
||||
#if PY_VERSION_HEX >= 0x03080000
|
||||
,0 /*tp_vectorcall */
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
,0 /*tp_watched */
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -170,6 +170,9 @@ static PyTypeObject PyBaseProxyType = {
|
||||
nullptr /*tp_finalize */
|
||||
#if PY_VERSION_HEX >= 0x03090000
|
||||
,0 //NOLINT /*tp_vectorcall */
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
,0 /*tp_watched */
|
||||
#endif
|
||||
#elif PY_VERSION_HEX >= 0x03080000
|
||||
,0 /*tp_vectorcall */
|
||||
/* bpo-37250: kept for backwards compatibility in CPython 3.8 only */
|
||||
@@ -235,6 +238,9 @@ PyTypeObject PyObjectBase::Type = {
|
||||
nullptr /*tp_finalize */
|
||||
#if PY_VERSION_HEX >= 0x03090000
|
||||
,0 //NOLINT /*tp_vectorcall */
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
,0 /*tp_watched */
|
||||
#endif
|
||||
#elif PY_VERSION_HEX >= 0x03080000
|
||||
,0 /*tp_vectorcall */
|
||||
/* bpo-37250: kept for backwards compatibility in CPython 3.8 only */
|
||||
|
||||
@@ -380,6 +380,9 @@ PyTypeObject @self.export.Name@::Type = {
|
||||
nullptr /*tp_finalize */
|
||||
#if PY_VERSION_HEX >= 0x03090000
|
||||
,nullptr /*tp_vectorcall */
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
,0 /*tp_watched */
|
||||
#endif
|
||||
#elif PY_VERSION_HEX >= 0x03080000
|
||||
,nullptr /*tp_vectorcall */
|
||||
/* bpo-37250: kept for backwards compatibility in CPython 3.8 only */
|
||||
|
||||
Reference in New Issue
Block a user