[issue27975] math.isnan(int) and math.isinf(int) should not raise OverflowError

Mark Dickinson report at bugs.python.org
Tue Sep 6 14:48:45 EDT 2016


Mark Dickinson added the comment:

> as would `math.isnan(Decimal('1e500'))`

Whoops, no. I'd forgotten that large finite `Decimal` objects end up as `float` infinities under conversion. Not sure I like that much, but it is what it is ...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27975>
_______________________________________


More information about the Python-bugs-list mailing list