[issue7447] Sum() doc and behavior mismatch

Leonhard Vogt report at bugs.python.org
Thu Jul 29 20:11:16 CEST 2010


Leonhard Vogt <leonhard.vogt at gmx.ch> added the comment:

Thank you Georg, I updated the patch

Ezio, wouldn't  start=0  in the signature  imply that sum accepted a keyword argument? I read "Documenting Python" (4.3) but am not sure about the distinction of default values or keyword arbuments.

>>> sum([1,2,3], start=4)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sum() takes no keyword arguments

----------
Added file: http://bugs.python.org/file18258/functions.rst.patch5.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7447>
_______________________________________


More information about the Python-bugs-list mailing list