Stefan Krah <ste...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34778>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to