[issue25177] OverflowError in statistics.mean when summing large floats

Bar Harel report at bugs.python.org
Sat Sep 19 18:11:48 CEST 2015


Bar Harel added the comment:

Alright,
Seems like the problem is bigger than I thought. PEP 238 (https://www.python.org/dev/peps/pep-0238/) mentions that problem.
Using the new division, // will cause a floor while / will cause an OverflowError.
An ugly way around it involves type checking or reverting back to the classic division.

----------
nosy: +benjamin.peterson, mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25177>
_______________________________________


More information about the Python-bugs-list mailing list