We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cdef void f() nogil: with gil: x = []
On current master this generates the C code:
goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); #ifdef WITH_THREAD __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_WriteUnraisable("xxx.f", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif __pyx_L0:; __Pyx_XDECREF(__pyx_v_x);
Note that both __Pyx_XDECREFs happen outside the __Pyx_PyGILState_Ensure block.
__Pyx_XDECREF
__Pyx_PyGILState_Ensure
On 0.29.x the code generated looks fine.
The text was updated successfully, but these errors were encountered:
2d8f7f3
Thanks for noticing and for the short reproducer.
Sorry, something went wrong.
No branches or pull requests
On current master this generates the C code:
Note that both
__Pyx_XDECREF
s happen outside the__Pyx_PyGILState_Ensure
block.On 0.29.x the code generated looks fine.
The text was updated successfully, but these errors were encountered: