Message 336421 - Python tracker

Message336421

Author rhettinger
Recipients brandtbucher, cheryl.sabella, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2019-02-24.02:55:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550976959.98.0.121800747188.issue36095@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-02-24 02:56:00rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, cheryl.sabella, brandtbucher
2019-02-24 02:55:59rhettingersetmessageid: <1550976959.98.0.121800747188.issue36095@roundup.psfhosted.org>
2019-02-24 02:55:59rhettingerlinkissue36095 messages
2019-02-24 02:55:59rhettingercreate