-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
Implement this:
@cython.cfunc
@cython.nogil
def func() -> cython.int:
return 1
- Add
nogilto the list of directives inCython/Compiler/Options.py. - In the
AdjustDefByDirectivestree transformation, apply thenogildirective wherever thenogilmodifier is allowed, i.e.cdef/@cfuncandcpdef/@ccallfunctions. - Wherever decorators are allowed, but
nogilis 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
@nogilon Python (def) functions and interpret it aswith nogil.
Also see #2579.
rushter, schneiderfelipe and rjdbcmcjgibson and schneiderfelipejakirkham and schneiderfelipe