We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


zip([iterable, …])

Returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The returned list is truncated in length to the length of the shortest argument sequence. When there are multiple arguments which are all of the same length, zip is similar to map with an initial argument of None. With a single sequence argument, it returns a list of 1-tuples. With no arguments, it returns an empty list. New in version 2.0.

Changed in version 2.4: Formerly, zip required at least one argument and zip() raised a TypeError instead of returning an empty list.