permuting several lists (was Re: [Python-Dev] zip() and
list-comprehension with commas)
Barry A. Warsaw
bwarsaw@beopen.com
Wed, 12 Jul 2000 09:35:09 -0400 (EDT)
>>>>> "JJ" == Jack Jansen <jack@oratrix.nl> writes:
JJ> parallel()/zip() have an other advantage: it would be easy to
JJ> extend to let the loop continue until the longest of the
JJ> items, with a keyword argument: parallel((1, 2), (3, 4, 5),
JJ> missing=None) # or extend, or some other name would return
JJ> ((1, 3), (2, 4), (None, 5))
Yes, yes, yes!
JJ> By the way: -1 on the name zip() and -0 on the name
JJ> parallel(), but +1 on the concept.
Is weave() perhaps a better name?
-Barry