summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAlex Martelli <aleaxit@gmail.com>2003-10-25 23:24:14 (GMT)
committerAlex Martelli <aleaxit@gmail.com>2003-10-25 23:24:14 (GMT)
commita253e183b807c8108f984758d2b1365bef977e6b (patch)
tree948ef3c9616860ddd5e2424aecbe6571f9ec19b5 /Python
parent1d313ab9d187d1a2cd379a61363252278cb2314e (diff)
downloadcpython-a253e183b807c8108f984758d2b1365bef977e6b.zip
cpython-a253e183b807c8108f984758d2b1365bef977e6b.tar.gz
cpython-a253e183b807c8108f984758d2b1365bef977e6b.tar.bz2
regressing the performance bugfix -- Guido wants the performance bug left
alone, because there can be no guarantee re the semantics of += vs + .
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 718b603..0309f1de 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1840,7 +1840,7 @@ builtin_sum(PyObject *self, PyObject *args)
}
break;
}
- temp = PyNumber_InPlaceAdd(result, item);
+ temp = PyNumber_Add(result, item);
Py_DECREF(result);
Py_DECREF(item);
result = temp;