Commit 282be3ab authored by Fred Drake's avatar Fred Drake

- explain the start argument to sum()

- various adjustments to sum() markup and explanation
parent d69b7445
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment