Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1433243

Browse filesBrowse files
ericsnowcurrentlyEclips4
authored andcommitted
gh-117142: Support Importing ctypes in Isolated Interpreters (gh-119991)
This makes the support official. Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
1 parent dd32c86 commit 1433243
Copy full SHA for 1433243

File tree

2 files changed

+3
-1
lines changed
Filter options

2 files changed

+3
-1
lines changed
+2Lines changed: 2 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: Modules/_ctypes/_ctypes.c
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.