Message332805
> the original decision to exclude non 'C' views was deliberate
Seems this is reflected in the code:
```
a = np.array([[0, 1, 2], [3, 4, 5]])
mv = memoryview(a.T)
mv.f_contiguous
# True
mv.cast('i', (3, 2))
# TypeError: memoryview: casts are restricted to C-contiguous views
```
Is there any interest in revisiting that discussion? It seems the buffer protocol could allow more flexibility wrt strides and contiguous flags. Do you have a link to the discussion where this was rejected? |
|
Date |
User |
Action |
Args |
2018-12-31 07:51:01 | mattip | set | recipients:
+ mattip, lgautier, skrah |
2018-12-31 07:51:00 | mattip | set | messageid: <1546242660.11.0.917579873767.issue34778@roundup.psfhosted.org> |
2018-12-31 07:51:00 | mattip | link | issue34778 messages |
2018-12-31 07:51:00 | mattip | create | |
|