summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-06-06 16:12:03 (GMT)
committerGitHub <noreply@github.com>2017-06-06 16:12:03 (GMT)
commit536209ef92f16ea8823209a3c4b8763c0ec5d4bc (patch)
tree98984cfe21bc8034b013049d6ba8c8608f1b5259 /Python
parente29c5e81045e24b60cec0f3990598d8468a56a0d (diff)
downloadcpython-536209ef92f16ea8823209a3c4b8763c0ec5d4bc.zip
cpython-536209ef92f16ea8823209a3c4b8763c0ec5d4bc.tar.gz
cpython-536209ef92f16ea8823209a3c4b8763c0ec5d4bc.tar.bz2
bpo-23787: Change sum() docstring from sequence to iterable (GH-1859)
* bpo-23787: Change sum() docstring from sequence to iterable Original patch by Raymond Hettinger.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index f03e488..70308e9 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2443,10 +2443,10 @@ builtin_sum(PyObject *self, PyObject *args)
}
PyDoc_STRVAR(sum_doc,
-"sum(sequence[, start]) -> value\n\
+"sum(iterable[, start]) -> value\n\
\n\
-Return the sum of a sequence of numbers (NOT strings) plus the value\n\
-of parameter 'start' (which defaults to 0). When the sequence is\n\
+Return the sum of an iterable or sequence of numbers (NOT strings)\n\
+plus the value of 'start' (which defaults to 0). When the sequence is\n\
empty, return start.");