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 mark.dickinson
Recipients Radosław Szalski, mark.dickinson
Date 2016-06-08.12:00:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465387201.19.0.421153776662.issue27265@psf.upfronthosting.co.za>
In-reply-to
Content
There's nothing wrong with two different Decimal objects having the same hash (indeed, it's inevitable, given that there are fewer than 2**64 hash values available, and many more possible Decimal objects). It only becomes a problem if you have a largish naturally-occurring dataset whose values all end up falling into the same hash bucket, resulting in linear-time dict operations instead of constant time.

I don't think that's the case here: each example of this form only has two different values with the same hash.

@Radosław Szalski: is this causing problems in a real application? If not, I think it should be closed as "won't fix".

Note that Python 3 is not subject to this issue: it uses a different hashing technique (as described in the issue 8188 that you already linked to).
History
Date User Action Args
2016-06-08 12:00:01mark.dickinsonsetrecipients: + mark.dickinson, Radosław Szalski
2016-06-08 12:00:01mark.dickinsonsetmessageid: <1465387201.19.0.421153776662.issue27265@psf.upfronthosting.co.za>
2016-06-08 12:00:01mark.dickinsonlinkissue27265 messages
2016-06-08 12:00:00mark.dickinsoncreate