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 Hamish Campbell
Recipients Hamish Campbell, abarry, docs@python, rhettinger
Date 2016-01-06.08:46:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Do you have a use case where `x == y`/`hash(x) == hash(y)` does not mean that `x` and `y` should be interchangeable? True and 1 are 100% interchangeable, minus their str() output, and my example is very unlikely to ever appear in actual code.

No I don't have a use case :)

> The culprit is the BUILD_SET opcode in Python/ceval.c which unnecessarily loops backwards (it looks like it was copied from the BUILD_TUPLE opcode).

Incidentally, pypy seems to behave the same as reported here.
Date User Action Args
2016-01-06 08:46:13Hamish Campbellsetrecipients: + Hamish Campbell, rhettinger, docs@python, abarry
2016-01-06 08:46:13Hamish Campbellsetmessageid: <>
2016-01-06 08:46:13Hamish Campbelllinkissue26020 messages
2016-01-06 08:46:13Hamish Campbellcreate