Message169499
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, ... |
|
Date |
User |
Action |
Args |
2012-08-31 04:14:02 | scoder | set | recipients:
+ scoder, loewis, georg.brandl, mark.dickinson, ncoghlan, belopolsky, pitrou, vstinner, christian.heimes, Arfrever, skrah, meador.inge, Dag.Sverre.Seljebotn |
2012-08-31 04:14:02 | scoder | set | messageid: <1346386442.15.0.282217595683.issue15814@psf.upfronthosting.co.za> |
2012-08-31 04:14:01 | scoder | link | issue15814 messages |
2012-08-31 04:14:01 | scoder | create | |
|