4 Mar
2020
4 Mar
'20
4:43 p.m.
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/K35GTW... https://bugs.python.org/issue33084 and various other discussions. -- Steven