New submission from Steven D'Aprano: >>> statistics.geometric_mean([0.7 for _ in range(5000)]) Traceback (most recent call last): File "/Users/mdickinson/Python/cpython-git/Lib/statistics.py", line 362, in float_nroot isinfinity = math.isinf(x) OverflowError: int too large to convert to float
See #27975 and #27181 ---------- assignee: steven.daprano components: Library (Lib) messages: 276149 nosy: haypo, mark.dickinson, steven.daprano priority: normal severity: normal status: open title: geometric_mean can raise OverflowError when checking for inf type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28111> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com