[Python-Dev] sum()

Raymond Hettinger python at rcn.com
Fri Mar 11 19:39:59 CET 2005

> If you're considering revisions to sum's design, my suggestion would
> to find a way to let the user tell sum to use a more accurate approach
> when summing floats.  

FWIW, when accuracy is an issue, I use:

   sum(sorted(data, key=abs))


More information about the Python-Dev mailing list