diff options
author | Georg Brandl <georg@python.org> | 2006-10-12 12:33:07 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-10-12 12:33:07 (GMT) |
commit | 8134d06e08a009c3bae040317dab6dd541241c7e (patch) | |
tree | 4e250b283a9634a12b463a4615fca1ec2f5f9a36 /Python | |
parent | 35207712dcfef23dea29d83e4d3d15fcab38b55e (diff) | |
download | cpython-8134d06e08a009c3bae040317dab6dd541241c7e.zip cpython-8134d06e08a009c3bae040317dab6dd541241c7e.tar.gz cpython-8134d06e08a009c3bae040317dab6dd541241c7e.tar.bz2 |
Bug #1283491: follow docstring convention wrt. keyword-able args in sum().
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ceb2fc7..f6c4ebb 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2055,10 +2055,11 @@ builtin_sum(PyObject *self, PyObject *args) } PyDoc_STRVAR(sum_doc, -"sum(sequence, start=0) -> value\n\ +"sum(sequence[, start]) -> value\n\ \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 * |