[issue22445] Memoryviews require more strict contiguous checks then necessary

Stefan Krah report at bugs.python.org
Sat Sep 20 13:23:57 CEST 2014


Stefan Krah added the comment:

Ok, so it is a debug thing in the current NumPy sources.

IMO ultimately the getbufferproc needs to return valid strides, even
if the first value isn't used.


For that matter, the getbufferproc is free to translate the multi-
dimensional corner case array to a one-dimensional array that is
automatically C and F-contiguous.

Does it matter if you lose some (irrelevant?) information about
the original array structure?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22445>
_______________________________________


More information about the Python-bugs-list mailing list