Skip to content

Commit 536209e

Browse files
authored
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.
1 parent e29c5e8 commit 536209e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/bltinmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,10 +2443,10 @@ builtin_sum(PyObject *self, PyObject *args)
24432443
}
24442444

24452445
PyDoc_STRVAR(sum_doc,
2446-
"sum(sequence[, start]) -> value\n\
2446+
"sum(iterable[, start]) -> value\n\
24472447
\n\
2448-
Return the sum of a sequence of numbers (NOT strings) plus the value\n\
2449-
of parameter 'start' (which defaults to 0). When the sequence is\n\
2448+
Return the sum of an iterable or sequence of numbers (NOT strings)\n\
2449+
plus the value of 'start' (which defaults to 0). When the sequence is\n\
24502450
empty, return start.");
24512451

24522452

0 commit comments

Comments
 (0)