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 ezio.melotti, flox, mark.dickinson, pitrou, vstinner
Date 2010-08-19.14:02:18
SpamBayes Score 6.454391e-10
Marked as misclassified No
Message-id <1282226541.9.0.585495384801.issue9636@psf.upfronthosting.co.za>
In-reply-to
Content
> The warning in the dict case is especially important

It's worth noting that this warning is dependent on hash() producing the same values for 'equivalent' bytes and str instances.  This seems a bit fragile, and is something that could potentially change in the future---with bytes and str comparing unequal, there's no reason for the hashes to correspond.

(It might even make sense to deliberately change the hash for either  bytes or str so that it doesn't match the other, just to expose any bugs that rely on the hashes being identical.)
History
Date User Action Args
2010-08-19 14:02:22mark.dickinsonsetrecipients: + mark.dickinson, pitrou, vstinner, ezio.melotti, flox
2010-08-19 14:02:21mark.dickinsonsetmessageid: <1282226541.9.0.585495384801.issue9636@psf.upfronthosting.co.za>
2010-08-19 14:02:19mark.dickinsonlinkissue9636 messages
2010-08-19 14:02:18mark.dickinsoncreate