Py3.12: initialize field 'tp_watched'

This commit is contained in:
wmayer
2024-02-07 15:58:28 +01:00
committed by Chris Hennes
parent 0158b6fd2a
commit ca03d18355
4 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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
};

View File

@@ -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 */

View File

@@ -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 */