Message169657
| Author | skrah |
|---|---|
| Recipients | Alexander.Belopolsky, Arfrever, Dag.Sverre.Seljebotn, belopolsky, christian.heimes, georg.brandl, loewis, mark.dickinson, meador.inge, ncoghlan, pitrou, python-dev, scoder, skrah, vstinner |
| Date | 2012-09-01.18:06:32 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <20120901180633.GA16743@sleipnir.bytereef.org> |
| In-reply-to | <50424964.8050806@v.loewis.de> |
| Content | |
|---|---|
> 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 |
|
| History | |||
|---|---|---|---|
| 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 | |