[Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex,1.66,1.67
Barry Warsaw
python-dev@python.org
Thu, 3 Aug 2000 08:46:20 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv1947
Modified Files:
libfuncs.tex
Log Message:
Both PEP 201 Lockstep Iteration and SF patch #101030 have been
accepted by the BDFL.
Added documentation for zip() builtin.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -r1.66 -r1.67
*** libfuncs.tex 2000/06/30 16:06:19 1.66
--- libfuncs.tex 2000/08/03 15:46:17 1.67
***************
*** 704,705 ****
--- 704,714 ----
used (e.g. when the loop is usually terminated with \keyword{break}).
\end{funcdesc}
+
+ \begin{funcdesc}{zip}{seq1\optional{, seq2\optional{, ...}}}
+ This function returns a list of tuples, where each tuple contains the
+ i-th element from each of the argument sequences. At least one
+ sequence is required, otherwise a \exception{TypeError} is raised.
+ The returned list is truncated in length to the length of the shortest
+ argument sequence. When the argument sequences are all of the same
+ length, \function{zip} is similar to \function{map} with an initial
+ None argument.