summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-04-22 14:52:08 (GMT)
committerFred Drake <fdrake@acm.org>2003-04-22 14:52:08 (GMT)
commit282be3ab89ff864c5499b38442a51b696401d0c8 (patch)
tree8f47683ee69d6410d4c008aa5549fa900773ac75 /Doc
parentd69b74453192bed078946fbe0f2b06489a118121 (diff)
downloadcpython-282be3ab89ff864c5499b38442a51b696401d0c8.zip
cpython-282be3ab89ff864c5499b38442a51b696401d0c8.tar.gz
cpython-282be3ab89ff864c5499b38442a51b696401d0c8.tar.bz2
- explain the start argument to sum()
- various adjustments to sum() markup and explanation
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libfuncs.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 50f22f8..345037e 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}