mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
document the performance fix to builtin_sum().
This commit is contained in:
parent
a2777d3a55
commit
dd6664514f
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,9 @@ Core and builtins
|
||||||
starting with Py2.3 are guaranteed to be stable (the relative order of
|
starting with Py2.3 are guaranteed to be stable (the relative order of
|
||||||
records with equal keys is unchanged).
|
records with equal keys is unchanged).
|
||||||
|
|
||||||
|
- Added a list.copysort() method that returns a copy of the sorted list
|
||||||
|
while leaving the original intact.
|
||||||
|
|
||||||
- Added test whether wchar_t is signed or not. A signed wchar_t is not
|
- Added test whether wchar_t is signed or not. A signed wchar_t is not
|
||||||
usable as internal unicode type base for Py_UNICODE since the
|
usable as internal unicode type base for Py_UNICODE since the
|
||||||
unicode implementation assumes an unsigned type.
|
unicode implementation assumes an unsigned type.
|
||||||
|
@ -44,6 +47,9 @@ Core and builtins
|
||||||
- obj.__contains__() now returns True/False instead of 1/0. SF patch
|
- obj.__contains__() now returns True/False instead of 1/0. SF patch
|
||||||
820195.
|
820195.
|
||||||
|
|
||||||
|
- builtin_sum() now uses PyNumber_InPlaceAdd, fixing a previous
|
||||||
|
performance bug for sum(list_of_lists) and similar cases.
|
||||||
|
|
||||||
Extension modules
|
Extension modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue