This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mattip
Recipients lgautier, mattip, skrah
Date 2018-12-31.07:51:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546242660.11.0.917579873767.issue34778@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2018-12-31 07:51:01mattipsetrecipients: + mattip, lgautier, skrah
2018-12-31 07:51:00mattipsetmessageid: <1546242660.11.0.917579873767.issue34778@roundup.psfhosted.org>
2018-12-31 07:51:00mattiplinkissue34778 messages
2018-12-31 07:51:00mattipcreate