[issue6567] Isn't inf almost equal to inf?

Michael Foord report at bugs.python.org
Sat Jul 25 02:26:56 CEST 2009

Michael Foord <michael at voidspace.org.uk> added the comment:

Uhm... they may or may not be almost equal, but probably not.
Comparisons on them are defined to be undefined so you're using the
wrong thing to test them. Use assertTrue and math.isinf instead.

nosy: +michael.foord
resolution:  -> wont fix
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list