From: Fred Drake Date: Tue, 22 Apr 2003 14:52:08 +0000 (+0000) Subject: - explain the start argument to sum() X-Git-Tag: v2.3c1~1080 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=282be3ab89ff864c5499b38442a51b696401d0c8;p=thirdparty%2FPython%2Fcpython.git - explain the start argument to sum() - various adjustments to sum() markup and explanation --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 50f22f84bcb0..345037ee5312 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -897,11 +897,12 @@ class C: \versionadded{2.2} \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})}. +\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}