mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
regressing the performance bugfix -- Guido wants the performance bug left
alone, because there can be no guarantee re the semantics of += vs + .
This commit is contained in:
parent
1d313ab9d1
commit
a253e183b8
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue