You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add nogil to the list of directives in Cython/Compiler/Options.py.
In the AdjustDefByDirectives tree transformation, apply the nogil directive wherever the nogil modifier is allowed, i.e. cdef/@cfunc and cpdef/@ccall functions.
Wherever decorators are allowed, but nogil is not, reject it explicitly (because it is no longer rejected by the parser).
Write tests for the good cases and for invalid cases.
Optionally: allow @nogil on Python (def) functions and interpret it as with nogil.
Implement this:
nogil
to the list of directives inCython/Compiler/Options.py
.AdjustDefByDirectives
tree transformation, apply thenogil
directive wherever thenogil
modifier is allowed, i.e.cdef
/@cfunc
andcpdef
/@ccall
functions.nogil
is not, reject it explicitly (because it is no longer rejected by the parser).@nogil
on Python (def
) functions and interpret it aswith nogil
.Also see #2579.
The text was updated successfully, but these errors were encountered: