[issue36095] Better NaN sorting.

Raymond Hettinger report at bugs.python.org
Sat Feb 23 21:55:59 EST 2019


Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue36095>
_______________________________________


More information about the Python-bugs-list mailing list