Author jakirkham
Recipients jakirkham
Date 2020-07-07.02:01:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594087287.71.0.356108904694.issue41226@roundup.psfhosted.org>
In-reply-to
Content
Currently one can reshape a `memoryview` using `.cast(...)` like so...

```
In [1]: m = memoryview(b"abcdef")

In [2]: m2 = m.cast("B", (2, 3))
```

However it is not currently possible to specify the `strides` when reshaping the `memoryview`. This would be useful if the `memoryview` should be F-order or otherwise strided. To that end, syntax like this would be useful...

```
In [1]: m = memoryview(b"abcdef")

In [2]: m2 = m.cast("B", (2, 3), (1, 2))
```
History
Date User Action Args
2020-07-07 02:01:27jakirkhamsetrecipients: + jakirkham
2020-07-07 02:01:27jakirkhamsetmessageid: <1594087287.71.0.356108904694.issue41226@roundup.psfhosted.org>
2020-07-07 02:01:27jakirkhamlinkissue41226 messages
2020-07-07 02:01:27jakirkhamcreate