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 scoder
Recipients Arfrever, Dag.Sverre.Seljebotn, belopolsky, christian.heimes, georg.brandl, loewis, mark.dickinson, meador.inge, ncoghlan, pitrou, scoder, skrah, vstinner
Date 2012-08-31.04:14:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346386442.15.0.282217595683.issue15814@psf.upfronthosting.co.za>
In-reply-to
Content
To add on Dag's comments, this essentially means that any caching of the hash value is dangerous, unless it can be assured that the underlying buffer definitely has not changed in the meantime. There is no way for users to explicitly tell a memoryview to rehash itself, so putting it into one dict, then modifying the content, then putting it into another is a perfectly reasonable use case for users, but fails when the memory view caches its hash value.

As far as I can see it, any "obvious" fix for this creates a whole bath tub full of worms: updating views transitively, adding new APIs, supporting new buffer parameters, ...
History
Date User Action Args
2012-08-31 04:14:02scodersetrecipients: + scoder, loewis, georg.brandl, mark.dickinson, ncoghlan, belopolsky, pitrou, vstinner, christian.heimes, Arfrever, skrah, meador.inge, Dag.Sverre.Seljebotn
2012-08-31 04:14:02scodersetmessageid: <1346386442.15.0.282217595683.issue15814@psf.upfronthosting.co.za>
2012-08-31 04:14:01scoderlinkissue15814 messages
2012-08-31 04:14:01scodercreate