If you declare a python function as nogil, Cython throws an internal
error. For example, compiling

def f() nogil: print 'hello, world'

yields a large traceback ending in

  File "Parsing.py", line 2431, in
Cython.Compiler.Parsing.p_def_statement
(./build/cython/Cython/Compiler/Parsing.c:44712)
AttributeError: 'Cython.Compiler.Scanning.PyrexScanner' object has no
attribute 'pos'

Thanks,
Dan Lepage
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to