>Proposed change:
>
>zip(   [iterable, ...])
>    This function returns a list of tuples, where the i-th tuple
>contains the i-th element from each of the argument sequences or
>iterables. It is an error if the argument sequences are of different
>lengths...
>
>That seems pretty comparable in complexity to me.  Could you explain
>how this makes zip() harder to understand?
>  
>

It's a PITA because it precludes all of the use cases whether the inputs 
ARE intentionally of different length (like when one argument supplys an 
infinite iterator):

   for lineno, ts, line in zip(count(1), timestamp(), sys.stdin):
       print 'Line %d, Time %s:  %s)' % (lineno, ts, line)


Raymond

_______________________________________________
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

Reply via email to