[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve
Stefan Krah
report at bugs.python.org
Sun Dec 30 05:39:27 EST 2018
Stefan Krah <stefan at bytereef.org> added the comment:
memoryview.cast() was originally meant to be a faster version of tobytes(), which always converts to C-contiguous.
The 'shape' keyword was added because it is odd if you can cast from ND-C to 1D-Bytes but not back.
I'm not sure if we should introduce that feature, just pointing out that the original decision to exclude non 'C' views was deliberate.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34778>
_______________________________________
More information about the Python-bugs-list
mailing list