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 mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, vstinner, wbolster
Date 2017-07-21.16:14:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500653664.68.0.798181409776.issue30907@psf.upfronthosting.co.za>
In-reply-to
Content
Victor, this part of the docs explains what you're seeing; scroll down to the

"""
In enforcing reflexivity of elements, the comparison of collections assumes that for a collection element x, x == x is always true ...
"""

part.

https://docs.python.org/3/reference/expressions.html#value-comparisons

In passing, note that dicts indexed by strings (well, indexed by anything) _do_ compare hashes first.  In that specific case it's a major win - but in that specific case we also know in advance that "EQ or NE?" is the only question needing an answer.
History
Date User Action Args
2017-07-21 16:14:24tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, vstinner, serhiy.storchaka, wbolster
2017-07-21 16:14:24tim.peterssetmessageid: <1500653664.68.0.798181409776.issue30907@psf.upfronthosting.co.za>
2017-07-21 16:14:24tim.peterslinkissue30907 messages
2017-07-21 16:14:24tim.peterscreate