Stefan Krah <[email protected]> added the comment:
I'm slightly confused about the implication chain in the flags. PyBUF_STRIDES
seem to allow for discontiguous arrays, yet STRIDES -> ND -> C_CONTIGUOUS.
PyBUF_FULL[_RO]
|
PyBUF_INDIRECT -------------- PyBUF_FORMAT ----------[PyBUF_WRITABLE]
|
PyBUF_STRIDES (This would be used when the consumer can handle strided,
discontiguous arrays ...)
|
PyBUF_ND <-> PyBUF_CONTIG (why?)
|
PyBUF_C_CONTIGUOUS (... but the implication chain leads us to a contiguous
buffer)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com