GH-100425: Note improved commutativity in sum(). (GH-107785)

This commit is contained in:
Raymond Hettinger 2023-08-08 19:30:33 +02:00 committed by GitHub
parent d4ac094cf9
commit aab6f7173a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1752,7 +1752,7 @@ are always available. They are listed here in alphabetical order.
The *start* parameter can be specified as a keyword argument.
.. versionchanged:: 3.12 Summation of floats switched to an algorithm
that gives higher accuracy on most builds.
that gives higher accuracy and better commutativity on most builds.
.. class:: super()

View File

@ -504,8 +504,8 @@ Other Language Changes
* :class:`slice` objects are now hashable, allowing them to be used as dict keys and
set items. (Contributed by Will Bradshaw, Furkan Onder, and Raymond Hettinger in :gh:`101264`.)
* :func:`sum` now uses Neumaier summation to improve accuracy when summing
floats or mixed ints and floats.
* :func:`sum` now uses Neumaier summation to improve accuracy and commutativity
when summing floats or mixed ints and floats.
(Contributed by Raymond Hettinger in :gh:`100425`.)
* Exceptions raised in a typeobject's ``__set_name__`` method are no longer