[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.129,1.130
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 22 Apr 2003 07:52:11 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv32576
Modified Files:
libfuncs.tex
Log Message:
- explain the start argument to sum()
- various adjustments to sum() markup and explanation
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** libfuncs.tex 22 Apr 2003 08:12:27 -0000 1.129
--- libfuncs.tex 22 Apr 2003 14:52:08 -0000 1.130
***************
*** 898,906 ****
\end{funcdesc}
! \begin{funcdesc}{sum}{sequence\optional{start=0}}
! Sums up the items of a \var{sequence}, from left to right, and returns
! the total. The \var{sequence}'s items are normally numbers, and are
! not allowed to be strings. The fast, correct way to join up a
! sequence of strings is by calling \code{''.join(\var{sequence})}.
\versionadded{2.3}
\end{funcdesc}
--- 898,907 ----
\end{funcdesc}
! \begin{funcdesc}{sum}{sequence\optional{, start}}
! Sums \var{start} and the items of a \var{sequence}, from left to
! right, and returns the total. \var{start} defaults to \code{0}.
! The \var{sequence}'s items are normally numbers, and are not allowed
! to be strings. The fast, correct way to concatenate sequence of
! strings is by calling \code{''.join(\var{sequence})}.
\versionadded{2.3}
\end{funcdesc}