[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

Martin Panter report at bugs.python.org
Sun Jan 29 19:06:12 EST 2017


Martin Panter added the comment:

While I don’t have much opinion either way, here is a patch to remove the existing dead code should that be the eventual outcome.

If the default implementations in the base class deferred to math.isfinite() etc, that may help with compatibility.

----------
versions: +Python 3.7 -Python 3.4
Added file: http://bugs.python.org/file46451/rm-finite.patch

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


More information about the Python-bugs-list mailing list