[Cython] Bug report: lambda and numpy.vectorize segfaults
vitja.makarov at gmail.com
Wed Mar 23 20:11:52 CET 2011
2011/3/23 Stefan Behnel <stefan_ml at behnel.de>:
> Vitja Makarov, 23.03.2011 17:25:
>> File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py",
>> line 2307, in p_c_arg_decl
>> if 'pxd' in s.level:
>> AttributeError: 'PyrexScanner' object has no attribute 'level'
> Yes it does:
> # Cython/Plex/Scanners.pxd
> cdef class Scanner:
> cdef public level
> Try a clean build.
Don't actually understand what's going wrong here?
I'm running plain python cython, probably I'm wrong.
lambda x=0:0 # give same error, but lambda x:0 work fine
About bug: it seems that analyse_expressions() is not called for LambdaNode.
Hope that will help.
More information about the cython-devel