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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28540>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to