Hi, Hoyt Koepke wrote: > In trying to compile a new cython file with a fair bit of code in it, > I get the following traceback: > > 22:23 hk-laptop:../clsynth/clsynth > cython transforms.pyx > Traceback (most recent call last): > [...] > File "Parsing.py", line 1447, in > Cython.Compiler.Parsing.p_DEF_statement > (/home/hoytak/sysroot/src/cython/Cython/Compiler/Parsing.c:30670) > File > "/home/hoytak/sysroot/lib/python2.5/site-packages/Cython/Compiler/ExprNodes.py", > line 2621, in compile_time_value > obj = self.arg.compile_time_value(denv) > AttributeError: 'AttributeNode' object has no attribute 'arg' > > I haven't been able to track down what exactly in my code is causing > this,
That was easy to fix, just a wrong field name in the code. > but if someone could tell what type of code would invoke the > above nodes, I'll try to isolate it in my code and write a test case. It looks like you access an attribute of a compile-time value in a DEF statement. > I suspect this bit of code in cython hasn't really been tested much, > per my last email... Yes, both bugs you spotted were in code that comes unchanged from Pyrex, and it looks like no-one ever used it for the last (two?) years that it's already in there. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
