How about each() instead of zip()?

Hamish Lawson hamish_lawson at yahoo.co.uk
Mon Jul 31 10:35:36 EDT 2000


A number of the proposals for a better name for the nascent
zip() function seem to employ the notion of taking items from
*each* of the constituent sequences. So I thought: how about
each() itself as the name of the function? So:

for x, y, z in each(a, b, c):
    print x, y, z


Hamish Lawson




-----------------------------------------------------------

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com




More information about the Python-list mailing list