[Python-Dev] Python Enhancement Proposals (PEPs)
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Fri, 14 Jul 2000 13:51:43 +0200
moshe wrote:
> > # normal case
> > for (x,) in zip([0, 1, 2]):
> > ...
> >=20
> > # special case
> > for x in zip([0, 1, 2]):
> > ...
>
> I'm sorry, I don't buy that.
>=20
> # "special case"
> for x in [0, 1, 2]:
> ...
>=20
> # "special case"
> do_something_that_requires_a_list_of_tuples(zip(*lists))
we sure have a major disconnect here -- wasn't the source
of this discussion the need to be able to loop over multiple
sequences in parallel?
isn't "for" what you'd usually use when looping over things?
</F>