Message237814
It is a bit of pity. A least non-sliced indexing should be able to work:
>>> import numpy as np
>>> a = np.arange(10)
>>> memoryview(a)[0]
0
>>> a = np.arange(10).reshape((2,5))
>>> a[0,1]
1
>>> memoryview(a)[0,1]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: memoryview: invalid slice key |
|
Date |
User |
Action |
Args |
2015-03-10 21:46:41 | pitrou | set | recipients:
+ pitrou, skrah |
2015-03-10 21:46:41 | pitrou | set | messageid: <1426024001.13.0.843495227824.issue23632@psf.upfronthosting.co.za> |
2015-03-10 21:46:41 | pitrou | link | issue23632 messages |
2015-03-10 21:46:41 | pitrou | create | |
|