[issue11949] Make float('nan') unorderable

Alexander Belopolsky report at bugs.python.org
Sat May 21 21:58:03 CEST 2011


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

On Sat, May 21, 2011 at 3:50 PM, Mark Dickinson <report at bugs.python.org> wrote:
..
> On the idea of a warning, I don't really see the point;  I find it hard to imagine it's really going to catch many real errors.

My experience is different.  In my work, NaNs often creep into
calculations that are not designed to deal with them. (More often from
data files than from invalid operations.)  Sorting a large list with a
handful of NaNs, often leads to rather mysterious errors if not to
silently wrong results.  I believe there was even an issue on the
tracker about this particular case.

----------

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


More information about the Python-bugs-list mailing list