[Python-3000] Parallel iteration syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 29 04:53:26 CEST 2006


Giovanni Bajo wrote:

> for i,(x,y) in enumerate(izip(iter1, iter2)):
>     ...
> 
> must be translated to:
> 
> for (i,x in enumerate(iter1), y in iter2):

Maybe the functionality of enumerate() could be
incorporated into the syntax as well.

   for (i in *, x in iter1, y in iter2):
     ...

--
Greg



More information about the Python-3000 mailing list