[issue15814] memoryview: equality-hash invariant

2012-08-30 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn added the comment: OK, I can understand the desire to make memoryviews be bytes-like objects (though to my mind, bytes is "frozen" in a very different way...) If so, and it is deemed worth it, my suggestion is to add a new PyBUF_CONST flag to the buffer acqu

[issue15814] memoryview: equality-hash invariant

2012-08-30 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn added the comment: It is perfectly possible for an object to export memory in a read-only way that may still change. Another object may have a writeable view: x = obj.readonly_view y = obj.writable_view obj.move_to_next_image() # changes memory under x, y So, hashing