mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Bug #1283491: follow docstring convention wrt. keyword-able args in sum().
This commit is contained in:
parent
35207712dc
commit
8134d06e08
1 changed files with 3 additions and 2 deletions
|
@ -2055,10 +2055,11 @@ builtin_sum(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(sum_doc,
|
PyDoc_STRVAR(sum_doc,
|
||||||
"sum(sequence, start=0) -> value\n\
|
"sum(sequence[, start]) -> value\n\
|
||||||
\n\
|
\n\
|
||||||
Returns the sum of a sequence of numbers (NOT strings) plus the value\n\
|
Returns the sum of a sequence of numbers (NOT strings) plus the value\n\
|
||||||
of parameter 'start'. When the sequence is empty, returns start.");
|
of parameter 'start' (which defaults to 0). When the sequence is\n\
|
||||||
|
empty, returns start.");
|
||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue