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.

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to