[Python-3000] Parallel iteration syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 30 13:01:56 CEST 2006


Giovanni Bajo wrote:

> And what about the ambiguity in parsing:
> 
> for (x in iter1,y,z in iter2):
>     ...

It would probably be necessary to require some
parens there, e.g.

   for (x in iter1, (y,z) in iter2):
     ...

--
Greg



More information about the Python-3000 mailing list