]> granicus.if.org Git - python/commitdiff
Bug #1283491: follow docstring convention wrt. keyword-able args in sum().
authorGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 12:33:07 +0000 (12:33 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 12:33:07 +0000 (12:33 +0000)
Python/bltinmodule.c

index ceb2fc77f42a0b15ef3051298a011ee6d4724475..f6c4ebbf2f8eb84d6d09e3ca87b8a7fc00a80699 100644 (file)
@@ -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 *