[issue47121] math.isfinite() can raise exception when called on a number
March 26, 2022
5:55 a.m.
Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: Most (but not all) functions in the math module implicitly convert its arguments to float. Here we can get an OverflowError. Do we want to add a note to every function that does it? Or add a general note at the top of the file and add exclusion notes to functions which do not convert arguments to float? BTW, there is a general note: "Except when explicitly noted otherwise, all return values are floats." ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue47121> _______________________________________
1029
Age (days ago)
1029
Last active (days ago)
0 comments
1 participants
participants (1)
-
Serhiy Storchaka