Jean Brouwers <[EMAIL PROTECTED]> added the comment: The current results are quite "interesting"
>>> math.sum([1e308, 1e308, -1e308]) Traceback (most recent call last): File "<stdin>", line 1, in <module> OverflowError: math range error >>> math.sum([1e308, -1e308, 1e308]) 1e+308 Handling this case would require holding the finite, prior sum at an intermediate overflow in a separate array, say overflows. Then, add the partials which may create additional overflows. Finally, keep adding the overflows (accurately?) until none remain or until none can be added without overflow. /Jean Brouwers __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2819> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com