[Cython] [Pyrex] Language stability
Jim Kleckner
jek-gmane at kleckner.net
Thu May 15 17:12:14 CEST 2008
Robert Bradshaw wrote:
> I'm -1 for having lots of multiple ways to do for loops (including
> that list of PEPs--we're already up to 3). Also, "from" makes it
> clear that this is a special cython loop--consider the following:
>
> x = 1
>
> class A:
> def __gt__(self, other):
> return range(3,7)
>
> 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.
More information about the Cython-dev
mailing list