Message169682
| Author |
ncoghlan |
| 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月02日.01:47:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1346550436.18.0.371479435017.issue15814@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
+1 for allowing bytes hashing. As Antoine noted, the 1D bytes variant of memoryview() fills the role previously handled by buffer().
+1 for allowing 1D non-contiguous hashing. This is from a simplicity perspective, as I don't want to have to explain to people why "hash(memoryview(b'12'[::2]))", "hash(memoryview(b'123'[::2]))" and "hash(memoryview(b'12')[::2])" all work, but "hash(memoryview(b'123')[::2])" fails.
-1 for allowing hashing when ndim > 1. We don't have a solid use case, and there's no odd value based corner cases to be considered. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月02日 01:47:16 | ncoghlan | set | recipients:
+ ncoghlan, loewis, georg.brandl, mark.dickinson, belopolsky, pitrou, scoder, vstinner, christian.heimes, Arfrever, skrah, meador.inge, Alexander.Belopolsky, python-dev, Dag.Sverre.Seljebotn |
| 2012年09月02日 01:47:16 | ncoghlan | set | messageid: <1346550436.18.0.371479435017.issue15814@psf.upfronthosting.co.za> |
| 2012年09月02日 01:47:15 | ncoghlan | link | issue15814 messages |
| 2012年09月02日 01:47:15 | ncoghlan | create |
|