Mike Hansen, 28.11.2010 09:43:
> 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

Thanks!

Given that you explicitly Python typed the loop variables in your example, 
I assume you are aware that a C typed loop variable shouldn't hit this problem?

Stefan
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to