[issue23185] add inf and nan to math module

Serhiy Storchaka report at bugs.python.org
Fri Jan 9 08:16:11 CET 2015


Serhiy Storchaka added the comment:

May be make math.inf and math.nan special objects so that for all x (except inf and nan):

x < math.inf
x > -math.inf
not (x < math.nan)
not (x > math.nan)

----------

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


More information about the Python-bugs-list mailing list