On Sat, Nov 27, 2010 at 11:36 PM, Stefan Behnel <[email protected]> wrote:
> Ah, right, I think you don't get an AST trace during code generation.
> That's too bad.
>
> But you can just go back to the frame in Nodes.py where it is trying to
> handle the ForFromStatNode and print its self.pos. That will give you the
> file and line/column number.
Thanks! Here is a minimal example of where it succeeds and where it fails:
cdef extern from "globals.h":
ctypedef unsigned long Ulong
cdef extern from "list.h":
Ulong size()
unsigned long size2()
def fail():
cdef j = 0
for j from 0 <= j < size():
print j
def succeed():
cdef j = 0
for j from 0 <= j < size2():
print j
--Mike
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev