[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.128,1.129

aleax@users.sourceforge.net aleax@users.sourceforge.net
Tue, 22 Apr 2003 01:13:00 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv22004/src/Doc/lib

Modified Files:
	libfuncs.tex 
Log Message:
Adding new built-in function sum, with docs and tests.


Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** libfuncs.tex	31 Jan 2003 17:19:05 -0000	1.128
--- libfuncs.tex	22 Apr 2003 08:12:27 -0000	1.129
***************
*** 898,901 ****
--- 898,909 ----
  \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}
+ 
  \begin{funcdesc}{super}{type\optional{object-or-type}}
    Return the superclass of \var{type}.  If the second argument is omitted