From: Georg Brandl Date: Thu, 12 Oct 2006 12:33:07 +0000 (+0000) Subject: Bug #1283491: follow docstring convention wrt. keyword-able args in sum(). X-Git-Tag: v2.6a1~2568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8134d06e08a009c3bae040317dab6dd541241c7e;p=thirdparty%2FPython%2Fcpython.git Bug #1283491: follow docstring convention wrt. keyword-able args in sum(). --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ceb2fc77f42a..f6c4ebbf2f8e 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 *