[Python-Dev] Python 3.x and bytes (original) (raw)
Raymond Hettinger raymond.hettinger at gmail.com
Fri May 20 05:10:44 CEST 2011
- Previous message: [Python-Dev] Python 3.x and bytes
- Next message: [Python-Dev] Python 3.x and bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 19, 2011, at 7:40 PM, Ethan Furman wrote:
Several folk have said that objects that compare equal must hash equal...
And so do the docs: http://docs.python.org/dev/reference/datamodel.html#object._hash_ , "the only required property is that objects which compare equal have the same hash value".
Raymond
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20110519/f8100944/attachment.html>
- Previous message: [Python-Dev] Python 3.x and bytes
- Next message: [Python-Dev] Python 3.x and bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]