This thread feels very much like a solution looking for a problem.

But on one narrow point, I'm trying to think of everything in the standard
library or builtins that actually forms a total order with elements of the
same type.

* Not floats
* I think not strings with unicode canonical equivalence, decomposition,
and normalization
* Definitely not sets, tuples, lists, dicts, etc.
* Arguably not Decimal because it is sensitive to decimal context
* Complex clearly not
* I think not datetimes under timezone issues (although any ordering is
certainly *wrong* given the vagaries of timezones)
* Queues, deques, etc. don't even try, nor should they
* Do array.array's lack even a partial order?

So really I think we are left with wanting a test for whether something is
"int or Fraction".

-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
_______________________________________________
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/O2M7B57PS7I5E2FMI6X2QYPP73XPP4VT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to