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 eric.smith
Recipients ardabro, eric.smith
Date 2014-12-01.11:54:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417434853.22.0.459851584286.issue22973@psf.upfronthosting.co.za>
In-reply-to
Content
hash() is not defined to be unique, so you're always going to have collisions. The behavior of hash() for int that you're seeing is not a bug.

There's some background here: http://stackoverflow.com/questions/10130454/why-do-1-and-2-both-hash-to-2-in-python
History
Date User Action Args
2014-12-01 11:54:13eric.smithsetrecipients: + eric.smith, ardabro
2014-12-01 11:54:13eric.smithsetmessageid: <1417434853.22.0.459851584286.issue22973@psf.upfronthosting.co.za>
2014-12-01 11:54:13eric.smithlinkissue22973 messages
2014-12-01 11:54:12eric.smithcreate