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 pitrou
Recipients christian.heimes, gregory.p.smith, jcea, pitrou, serhiy.storchaka
Date 2012-11-10.23:26:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352590000.34.0.900287227742.issue16427@psf.upfronthosting.co.za>
In-reply-to
Content
The patch is too optimistic, it gives different results depending on the alignment of the memory buffer:

>>> b = b"abcd"*100
>>> hash(b[1:])
7264687738704559842
>>> hash(memoryview(b)[1:])
9054791208347464792
>>> memoryview(b)[1:] == b[1:]
True
History
Date User Action Args
2012-11-10 23:26:40pitrousetrecipients: + pitrou, gregory.p.smith, jcea, christian.heimes, serhiy.storchaka
2012-11-10 23:26:40pitrousetmessageid: <1352590000.34.0.900287227742.issue16427@psf.upfronthosting.co.za>
2012-11-10 23:26:40pitroulinkissue16427 messages
2012-11-10 23:26:40pitroucreate