[Python-3000] Parallel iteration syntax
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Mar 29 04:54:00 CEST 2006
Guido van Rossum wrote:
> for (x in A, y in B):
>
> could just as well be meant as a shortcut for
>
> for x in A:
> for y in B:
Well, the parens around the whole thing make it
look like a single tuple to me. But that could
just be because I already know what it's supposed
to mean.
Ultimately it would be something you just have
to learn, like the meaning of zip().
--
Greg
More information about the Python-3000
mailing list