Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

This issue isn't sorting.  The issue is with what NaNs do.  You can propose to 
"fix" NaNs rather than special casing everything else in Python that compares 
two values.

A NaN could be given a deterministic sort order relative to other floats (much 
as None used to compare less than everything else),  That said, you'll find 
people who argue than NaNs aren't broken and are doing exactly what they're 
supposed to do.

Please take this to python-ideas.  From my point of view, the current proposal 
is a non-starter.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36095>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to