[issue46018] expm1 may incorrectly raise OverflowError on underflow

Mark Dickinson report at bugs.python.org
Thu Dec 9 13:30:35 EST 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

> Lines 500-504 are the ones that trigger it.

Ah, right. Thanks.

> Apparently there are no tests in that file for straight exp()

Yes - that file was mostly written to give good coverage for places where we'd written our own implementations rather than simply wrapping an existing libm function, though I think we've now reverted to using the libm expm1 in all cases.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46018>
_______________________________________


More information about the Python-bugs-list mailing list