[Cython] [Pyrex] Language stability
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 16 03:22:02 CEST 2008
Jim Kleckner wrote:
> Robert Bradshaw wrote:
>
>> for x in 0 <= x < A():
>> print x
>>
>> This is valid Python (prints 3, 4, 5, 6), and would act completely
>> differently under your proposal.
>
> This seems to me to demonstrate quite well that the newer syntax
> is less desirable than the old.
Not sure I follow -- the new syntax isn't ambiguous.
It can't be an ordinary for-loop, because it doesn't
have an 'in' in it.
--
Greg
More information about the Cython-dev
mailing list