Message403475
Py_SET_ERRNO_ON_MATH_ERROR() documentation also says that it is not reliable:
/* Py_SET_ERRNO_ON_MATH_ERROR(x)
* If a libm function did not set errno, but it looks like the result
* overflowed or not-a-number, set errno to ERANGE or EDOM. Set errno
* to 0 before calling a libm function, and invoke this macro after,
* passing the function result.
* Caution:
* This isn't reliable. See Py_OVERFLOWED comments.
* X is evaluated more than once.
*/ |
|
Date |
User |
Action |
Args |
2021-10-08 14:01:58 | vstinner | set | recipients:
+ vstinner, mark.dickinson |
2021-10-08 14:01:58 | vstinner | set | messageid: <1633701718.91.0.934278080048.issue45412@roundup.psfhosted.org> |
2021-10-08 14:01:58 | vstinner | link | issue45412 messages |
2021-10-08 14:01:58 | vstinner | create | |
|