[New-bugs-announce] [issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception
Francisco Couzo
report at bugs.python.org
Wed Oct 26 17:25:41 EDT 2016
New submission from Francisco Couzo:
Most functions in the math library raise an OverflowError when the arguments are finite but the result is not.
>>> math.exp(sys.float_info.max)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> math.degrees(sys.float_info.max)
inf
----------
messages: 279513
nosy: franciscouzo
priority: normal
severity: normal
status: open
title: math.degrees(sys.float_info.max) should throw an OverflowError exception
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28540>
_______________________________________
More information about the New-bugs-announce
mailing list