a sequence question

David Isaac aisaac0 at verizon.net
Fri Feb 11 01:07:50 EST 2005


"Nick Coghlan" <ncoghlan at iinet.net.au> wrote in message
news:mailman.1553.1106960946.22381.python-list at python.org...
> Using zip(*[iter(l)]*N) or zip(*(iter(l),)*N) simply extends the above to
the
> general case.

Clearly true.
But can you please go into much more detail for a newbie?
I see that [iter(l)]*N produces an N element list with each element being
the same iterator object, but after that
http://www.python.org/doc/2.3.5/lib/built-in-funcs.html
just didn't get me there.

Thanks,
Alan Isaac





More information about the Python-list mailing list