summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 722353e..88d858d 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -3124,6 +3124,9 @@ _PyBuiltin_Init(PyInterpreterState *interp)
mod = _PyModule_CreateInitialized(&builtinsmodule, PYTHON_API_VERSION);
if (mod == NULL)
return NULL;
+#ifdef Py_GIL_DISABLED
+ PyModule_ExperimentalSetGIL(mod, Py_MOD_GIL_NOT_USED);
+#endif
dict = PyModule_GetDict(mod);
#ifdef Py_TRACE_REFS