Message332766
Wait. Isn't a `memoryview` memerely a Python object for a buffer inferface, whatever its valid attributes or flags might be ?
The perceived oddness that lead to the addition of the keyword 'shape' was a good initial instinct that something was off, but this is an incomplete workaround .
If the rationale was to follow what `tobytes` is doing, this delegates the justification for excluding non 'C' views it. Then I do not understand the rationale behind `memoryview.tobytes`'s exclusive relationshop to C-contiguous arrays. A memmoryview is a window on a memory region (a Python buffer), and one would expect `tobytes` to just return bytes for it (in whatever bytes/strides) the memoryview is originally in. |
|
Date |
User |
Action |
Args |
2018-12-30 21:57:43 | lgautier | set | recipients:
+ lgautier, skrah, mattip |
2018-12-30 21:57:41 | lgautier | set | messageid: <1546207061.86.0.23693674053.issue34778@roundup.psfhosted.org> |
2018-12-30 21:57:41 | lgautier | link | issue34778 messages |
2018-12-30 21:57:41 | lgautier | create | |
|