[issue6567] Make inf be almost equal to inf

Mark Dickinson report at bugs.python.org
Sat Jul 25 21:52:13 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

[lucaspmelo]
> I would like to ask as a feature request that "inf" be almost equal to
> "inf".

Sounds reasonable to me.  Just so long as float('-inf') isn't almost equal 
to float('inf');  that would be weird.

One could almost make a case for values very close to the upper limit of 
the floating-point range being almost equal to float('inf'), but I think 
that's taking things a bit too far.

----------

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


More information about the Python-bugs-list mailing list