Message169648
| 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日.17:20:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<20120901172023.GA16365@sleipnir.bytereef.org> |
| In-reply-to |
<50423277.1020207@v.loewis.de> |
| Content |
Disallowing non-contiguous arrays leads to very strange situations though.
I'm positive that there will be a bug report about this:
>>> x = memoryview(b'abc')[::-1]
>>> b = b'cba'
>>> d = {b'cba': 101}
>>>
>>> b in d
True
>>> x == b
True
>>> x in d
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: memoryiew: hashing is restricted to C-contiguous arrays
Could we perhaps take a small poll? My own vote is:
1) Allow bytes hashing at all: +0.5
2) If 1) is allowed, then also non-contiguous hashing is allowed: +1
3) Allow multi-dimensional hashing: +-0 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月01日 17:20:22 | 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日 17:20:22 | skrah | link | issue15814 messages |
| 2012年09月01日 17:20:21 | skrah | create |
|