On Mar 18, 2009, at 2:08 PM, Greg Ewing wrote:
> Dag Sverre Seljebotn wrote:
>
>> However, myself I consider for-from present mostly for backwards
>> compatability anyway,
Me too, though I actually do like the syntax. Lets let the endpoints
always be fixed for consistency between Cython and Pyrex.
> Efficiency wasn't the only reason I added the
> for-from loop to Pyrex. Equally important, perhaps
> more so, is that it provides a concise and readable
> way of specifying inclusion or exclusion of each
> endpoint.
>
> As for the value of the loop variable after the
> loop, I'd be willing to consider it undefined, so
> that whatever behaviour is most efficiently
> implementable can be used.
What about the behavior of
for i from 0 <= i < 10:
print i
i += 5
?
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev