On Wed, Mar 04, 2020 at 04:21:46PM +0000, Mark Dickinson wrote:

> I'd argue that on a practicality-beats-purity basis, it wouldn't be
> unreasonable to register both `Decimal` and `float` as implementing
> `TotalOrdering` (or whatever the ABC ends up being called).

And that seems perfectly practical until somebody tries to compare or 
sort floats and discovers that they actually don't implement a total 
ordering if any NANs have crept into their data.

This can be a genuine pain point:

https://mail.python.org/archives/list/python-ideas@python.org/message/K35GTWPKNS2DSUMH63VTSWXQWVN6JASW/

https://bugs.python.org/issue33084

and various other discussions.


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/MGRKRJDJ6J5QB63WTJMCM72XHZFYFAYC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to