[issue41458] Avoid overflow/underflow in math.prod()
Raymond Hettinger
report at bugs.python.org
Thu Aug 6 15:58:28 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
I attached a file with latest (and more tested) recipe. The underflow test was fixed: "not total and old_total and x". Also, the final call to math.prod() was in-lined so that I could time it with PyPy.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41458>
_______________________________________
More information about the Python-bugs-list
mailing list