Eric V. Smith <e...@trueblade.com> added the comment:

-1. We don't want to have objects that are orderable depending on their values. 
I can't think of anywhere else we do this.

It would be very easy to have a complex == 42+0.0000001j, after some 
calculation. This near-zero imaginary part would prevent it from being 
orderable, while if a similar calculation produced exactly 42+0j, then that 
instance would be orderable. An application relying on this would be a 
nightmare to write comprehensive tests for.

Whether something is orderable or not should depend solely on its type, not its 
value.

----------
nosy: +eric.smith

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

Reply via email to