summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-01 17:13:31 (GMT)
committerGitHub <noreply@github.com>2023-11-01 17:13:31 (GMT)
commitd3d2cfead71e3a64704d8e578f22bba18b8e0284 (patch)
tree3ea5ffc19196d87702e42b4fa842e4601fd8e118 /Modules
parente2557947a455bb7e990f0b878cf7c68f752b19f1 (diff)
downloadcpython-d3d2cfead71e3a64704d8e578f22bba18b8e0284.zip
cpython-d3d2cfead71e3a64704d8e578f22bba18b8e0284.tar.gz
cpython-d3d2cfead71e3a64704d8e578f22bba18b8e0284.tar.bz2
[3.12] gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111588)
Constants like Py_MOD_PER_INTERPRETER_GIL_SUPPORTED were only added to the limited C API version 3.12 and newer.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xxlimited.c3
-rw-r--r--Modules/xxlimited_35.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c
index 3935c00..b9646de 100644
--- a/Modules/xxlimited.c
+++ b/Modules/xxlimited.c
@@ -62,7 +62,8 @@
pass
*/
-#define Py_LIMITED_API 0x030b0000
+// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
+#define Py_LIMITED_API 0x030c0000
#include "Python.h"
#include <string.h>
diff --git a/Modules/xxlimited_35.c b/Modules/xxlimited_35.c
index 1ff3ef1..361c7e7 100644
--- a/Modules/xxlimited_35.c
+++ b/Modules/xxlimited_35.c
@@ -293,7 +293,6 @@ xx_modexec(PyObject *m)
static PyModuleDef_Slot xx_slots[] = {
{Py_mod_exec, xx_modexec},
- {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL}
};