[issue12286] float('nan') breaks sort() method on a list of floats
report at bugs.python.org
Wed Jun 8 20:24:07 CEST 2011
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
This is actually a duplicate of issue7915.
I don't think there is nothing we can do to improve the situation. In fact discussion at #11949 ends with a +0 from Mark Dickinson to issue a warning whenever nans participate in order comparison. Discussion at #11986 ends without any clear consensus. I think we should keep at least one issue on this topic open rather than close new issues as invalid by referring users to older closed issues that don't explain why silently producing nonsensical results is better than raising an error or issuing a warning.
resolution: invalid -> duplicate
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list