Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

I really don't want to introduce something slower than O(n) behavior here, 
particularly because some of my use cases have a large n and because this will 
be called many times.  Tim has already opined the even using a variant of Kahan 
summation would increase the cost unacceptably. IMO, sorting is even worse and 
would be a foolish thing to do.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to