]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug #1121416: zip incorrectly and incompletely documented
authorRaymond Hettinger <python@rcn.com>
Sun, 21 Aug 2005 11:59:04 +0000 (11:59 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 21 Aug 2005 11:59:04 +0000 (11:59 +0000)
sequences ==> iterables

Doc/lib/libfuncs.tex

index c0595b1bcb58eb5be39349f81e9a726abec45659..77ee972f17b0b90935c828aa9286bb30fff496d6 100644 (file)
@@ -1111,12 +1111,12 @@ It's a function
         that the number of elements fit in a native C long.}
 \end{funcdesc}
 
-\begin{funcdesc}{zip}{\optional{seq1, \moreargs}}
+\begin{funcdesc}{zip}{\optional{iterable, \moreargs}}
   This function returns a list of tuples, where the \var{i}-th tuple contains
-  the \var{i}-th element from each of the argument sequences.
+  the \var{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 argument
-  sequences which are all of the same length, \function{zip()} is
+  the shortest argument sequence.  When there are multiple arguments
+  which are all of the same length, \function{zip()} is
   similar to \function{map()} with an initial argument of \code{None}.
   With a single sequence argument, it returns a list of 1-tuples.
   With no arguments, it returns an empty list.