This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients mark.dickinson, vstinner
Date 2021-10-08.14:01:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633701718.91.0.934278080048.issue45412@roundup.psfhosted.org>
In-reply-to
Content
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.
 */
History
Date User Action Args
2021-10-08 14:01:58vstinnersetrecipients: + vstinner, mark.dickinson
2021-10-08 14:01:58vstinnersetmessageid: <1633701718.91.0.934278080048.issue45412@roundup.psfhosted.org>
2021-10-08 14:01:58vstinnerlinkissue45412 messages
2021-10-08 14:01:58vstinnercreate