Py3.13: Initialize field tp_versions_used

This commit is contained in:
Ladislav Michl
2025-09-10 08:14:40 +02:00
parent 014d646065
commit 175454b78c
2 changed files with 6 additions and 1 deletions

View File

@@ -46,7 +46,9 @@
virtual ~_class_(); \
};
#if PY_VERSION_HEX >= 0x030c0000
#if PY_VERSION_HEX >= 0x030d0000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
#elif 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
#else
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

View File

@@ -83,6 +83,9 @@ PyTypeObject FeaturePythonPyT<FeaturePyT>::Type = {
#if PY_VERSION_HEX >= 0x030c0000
,0 /*tp_watched */
#endif
#if PY_VERSION_HEX >= 0x030d0000
,0 /*tp_versions_used */
#endif
};
template<class FeaturePyT>