Greg Ewing <[EMAIL PROTECTED]> wrote:
> for (x in iter1, y in iter2):
> ...
Contrary to zip()/izip(), this does not easily allow further composition, as
far as I can tell. For instance:
for i,(x,y) in enumerate(izip(iter1, iter2)):
...
must be translated to:
for (i,x in enumerate(iter1), y in iter2):
or:
for (x in iter1, i,y in enumerate(iter2)):
both of which require one further mental step, if you're coming from:
i = 0
for (x in iter1, y in iter2):
...
i += 1
--
Giovanni Bajo
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com