-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
gh-99113: Add a check for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED #104206
gh-99113: Add a check for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED #104206
Conversation
9cd8840
to
78b6ae7
Compare
78b6ae7
to
e2ddc27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BTW, the branch in lines 295-300 seems lack coverage (disclaimer: I only ran test_import
)
Thanks for pointing out about the missing test coverage. I've added it. I also did likewise for the similar case where |
Nice, thanks! I can confirm that those branches are now covered. |
…4205) Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in pythongh-104206 (once PyInterpreterState.ceval.own_gil is added in pythongh-104204).
…ythongh-104206) Py_MOD_PER_INTERPRETER_GIL_SUPPORTED is a new supported value for Py_mod_multiple_interpreters, added in pythongh-104205.
Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
is a new supported value forPy_mod_multiple_interpreters
, added in gh-104205.(This is blocked until
PyInterpreterState.ceval.own_gil
is added in gh-104204.)