New submission from Steve Dower <[email protected]>:
If a C runtime's math functions set errno to ERANGE, we assume it is a valid underflow if fabs(result) < 1.0. However, because expm1 includes a -1.0, it underflows towards -1.0. This fails the above check, and so if a runtime's expm1() sets ERANGE we will raise a spurious OverflowError. ---------- assignee: steve.dower components: Library (Lib) messages: 408059 nosy: steve.dower priority: normal severity: normal status: open title: expm1 may incorrectly raise OverflowError on underflow versions: Python 3.10, Python 3.11, Python 3.9 _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue46018> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
