Commit e5dc7523 authored by Mark Florisson's avatar Mark Florisson

Disable @cython.initializedcheck(False) force in nogil context

parent 73c6b0ea
...@@ -19,8 +19,10 @@ ERR_UNINITIALIZED = ("Cannot check if memoryview %s is initialized without the " ...@@ -19,8 +19,10 @@ ERR_UNINITIALIZED = ("Cannot check if memoryview %s is initialized without the "
"GIL, consider using initializedcheck(False)") "GIL, consider using initializedcheck(False)")
def err_if_nogil_initialized_check(pos, env, name='variable'): def err_if_nogil_initialized_check(pos, env, name='variable'):
if env.nogil and env.directives['initializedcheck']: "This raises an exception at runtime now"
error(pos, ERR_UNINITIALIZED % name) pass
#if env.nogil and env.directives['initializedcheck']:
#error(pos, ERR_UNINITIALIZED % name)
def concat_flags(*flags): def concat_flags(*flags):
return "(%s)" % "|".join(flags) return "(%s)" % "|".join(flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment