Message169657
> py> x = memoryview(array.array('B',b'cba'))
I find the array example is different. The user has to remember one thing:
memoryviews based on arrays don't hash.
For memoryviews based on bytes one would have to remember:
- 'B', 'c' and 'b' hash
- only C-contiguous arrays hash
- b'abc'[::-1] hashes, but memoryview(b'abc')[::-1] does not |
|
Date |
User |
Action |
Args |
2012-09-01 18:06:33 | skrah | set | recipients:
+ skrah, loewis, georg.brandl, mark.dickinson, ncoghlan, belopolsky, pitrou, scoder, vstinner, christian.heimes, Arfrever, meador.inge, Alexander.Belopolsky, python-dev, Dag.Sverre.Seljebotn |
2012-09-01 18:06:32 | skrah | link | issue15814 messages |
2012-09-01 18:06:32 | skrah | create | |
|