gh-121149: improve accuracy of builtin sum() for complex inputs (gh-121176)

This commit is contained in:
Sergey B Kirpichev 2024-07-05 18:01:05 +03:00 committed by GitHub
parent cecd6012b0
commit d4faa7bd32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 120 additions and 26 deletions

View file

@ -1934,6 +1934,10 @@ are always available. They are listed here in alphabetical order.
.. versionchanged:: 3.12 Summation of floats switched to an algorithm
that gives higher accuracy and better commutativity on most builds.
.. versionchanged:: 3.14
Added specialization for summation of complexes,
using same algorithm as for summation of floats.
.. class:: super()
super(type, object_or_type=None)