[issue24270] PEP 485 (math.isclose) implementation

Tal Einat report at bugs.python.org
Thu May 28 14:05:21 CEST 2015


Tal Einat added the comment:

@Stefan: Well, this seems to already be the situation with the rest of the math module:

>>> math.isinf(Decimal("1e999"))
True

>>> math.sqrt(Decimal("1e999"))
inf

Properly handling other types which are convertible to floats, such as Decimal and Fraction, is outside the scope of this issue.

----------

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


More information about the Python-bugs-list mailing list