[Cython] [Fwd: Re: Beginner-friendly tickets]

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 17 22:35:10 CET 2009


Dag Sverre Seljebotn wrote:

> ForFromStatNode is used in two situations in Cython code; in the 
> Cython-specific syntax
> 
> cdef int i
> for i from start <= i < end [by step]:
>     ...
>
> In the former case, end should NOT be frozen (i.e. if it is a function 
> call it should be called again for every iteration

Has Cython changed this? It's not how the for-from
statement works in Pyrex -- the limits are only
evaluated once.

-- 
Greg


More information about the Cython-dev mailing list