Skip to content

Commit 8d130b9

Browse files
ericsnowcurrentlyEclips4
authored andcommitted
pythongh-117142: Support Importing ctypes in Isolated Interpreters (pythongh-119991)
This makes the support official. Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent 73c7377 commit 8d130b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The :mod:`ctypes` module may now be imported in all subinterpreters, including
2+
those that have their own GIL.

Modules/_ctypes/_ctypes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5939,7 +5939,7 @@ module_free(void *module)
59395939

59405940
static PyModuleDef_Slot module_slots[] = {
59415941
{Py_mod_exec, _ctypes_mod_exec},
5942-
{Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED},
5942+
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
59435943
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
59445944
{0, NULL}
59455945
};

0 commit comments

Comments
 (0)