8000 [3.13] gh-117142: Support Importing ctypes in Isolated Interpreters (gh-119991) by miss-islington · Pull Request #120008 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] gh-117142: Support Importing ctypes in Isolated Interpreters (gh-119991) #120008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-117142: Support Importing ctypes in Isolated Interpreters (gh-119991)
This makes the support official.

(cherry picked from commit dba7a16)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
  • Loading branch information
2 people authored and miss-islington committed Jun 3, 2024
commit 2ce8e0e7fd8926b7b3cc94d20f9c2444cd9d203b
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The :mod:`ctypes` module may now be imported in all subinterpreters, including
those that have their own GIL.
2 changes: 1 addition & 1 deletion Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -5939,7 +5939,7 @@ module_free(void *module)

static PyModuleDef_Slot module_slots[] = {
{Py_mod_exec, _ctypes_mod_exec},
{Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
{0, NULL}
};
Expand Down
0