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
C API to retain GIL during Python Callback #43435
Comments
[Split off from closed 1453341, which desired a Python- I think it would be very useful to have an API that I'd like to quote Tim Peters, who explains it better The Use Case arose with a multi-threading problem in Any other mechanism that came to my mind would either Best regards, Martin Gfeller |
Logged In: YES Would you like to work on a patch for that? |
Logged In: YES This would unfortunately be way beyond my competence in C |
I'm not sure if such a API is feasible. The very nature of Python makes Let's consider the following scenario:
AFAICS we can't guarantee not to deadlock if there are other threads |
Lukas, I'm afraid to admit you're right :-;. Assuming that the Python code called under the "not release the GIL" So I withdraw my feature request and thank you for your efforts and Best regards, Martin |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: