Tim Peters <t...@python.org> added the comment:

I expect these docs date back to when ints, longs, and floats were the only 
hashable language-supplied types for which mixed-type comparison could ever 
return True.

They could stand some updates ;-)  `fractions.Fraction` and `decimal.Decimal` 
are more language-supplied numeric types that participate now, and the Boolean 
singletons are instances of (a subclass of) `int`.  I think it would be good to 
point that out, especially the latter (in many other languages Booleans can't 
be compared to ints).

So +1 both to Mark's more-general explanation, and to explicitly naming more 
specific cases for illustration.

----------
nosy: +tim.peters

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

Reply via email to