summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-09-12 17:54:06 (GMT)
committerGitHub <noreply@github.com>2018-09-12 17:54:06 (GMT)
commit9dfa0fe587eae3626ffc973680c6a17f35de3864 (patch)
treeb9bcea3d12dd609b45aafd333d72a8c05f5d053b /Python/bltinmodule.c
parent0fb9fadd3b3e9e3698647e0b92d49b0b7aacd979 (diff)
downloadcpython-9dfa0fe587eae3626ffc973680c6a17f35de3864.zip
cpython-9dfa0fe587eae3626ffc973680c6a17f35de3864.tar.gz
cpython-9dfa0fe587eae3626ffc973680c6a17f35de3864.tar.bz2
bpo-34637: Make the *start* argument for *sum()* visible as a keyword argument. (GH-9208)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index a23bdc1..8001c60 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2272,8 +2272,8 @@ With an argument, equivalent to object.__dict__.");
sum as builtin_sum
iterable: object
- start: object(c_default="NULL") = 0
/
+ start: object(c_default="NULL") = 0
Return the sum of a 'start' value (default: 0) plus an iterable of numbers
@@ -2284,7 +2284,7 @@ reject non-numeric types.
static PyObject *
builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
-/*[clinic end generated code: output=df758cec7d1d302f input=3b5b7a9d7611c73a]*/
+/*[clinic end generated code: output=df758cec7d1d302f input=162b50765250d222]*/
{
PyObject *result = start;
PyObject *temp, *item, *iter;