This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Bell
Recipients Mark.Bell
Date 2017-08-08.11:52:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502193168.16.0.095124886528.issue31141@psf.upfronthosting.co.za>
In-reply-to
Content
The built-in function sum takes an optional argument "start" to specify what value to start adding from (defaults to 0). This argument should be a keyword argument in order to match the other built-in functions such as:

    enumerate(range(10), start=5)

This patch allows users to write:

    sum(range(10), start=5)

which previously raised "TypeError: sum() takes no keyword arguments". Since the only change is making an optional positional argument into a keyword argument, this has no effect on any existing code using the current convention of:

    sum(range(10), 5)
History
Date User Action Args
2017-08-08 11:52:48Mark.Bellsetrecipients: + Mark.Bell
2017-08-08 11:52:48Mark.Bellsetmessageid: <1502193168.16.0.095124886528.issue31141@psf.upfronthosting.co.za>
2017-08-08 11:52:48Mark.Belllinkissue31141 messages
2017-08-08 11:52:47Mark.Bellcreate