This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients Janusz Harkot, mark.dickinson, terry.reedy, tim.peters
Date 2018-05-18.18:29:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526668167.67.0.682650639539.issue33572@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-18 18:29:27tim.peterssetrecipients: + tim.peters, terry.reedy, mark.dickinson, Janusz Harkot
2018-05-18 18:29:27tim.peterssetmessageid: <1526668167.67.0.682650639539.issue33572@psf.upfronthosting.co.za>
2018-05-18 18:29:27tim.peterslinkissue33572 messages
2018-05-18 18:29:27tim.peterscreate