[issue11949] Make float('nan') unorderable

Alexander Belopolsky report at bugs.python.org
Tue May 3 16:52:16 CEST 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

> There are lots of almost-equality tests in the test-suite already,
> between test_math, test_float, test_cmath and test_complex.
>  Do you need to implement another one here, or can you reuse one
> of the existing ones?

I can probably use acc_check() instead of abs(value-expected) <= eps, but I am not sure that will be an improvement.  Most of the new logic deals with NaNs and negative zero and the almost-equality tests that I've seen don't implement these cases correctly for my use.

----------

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


More information about the Python-bugs-list mailing list