[issue22896] Don't use PyObject_As*Buffer() functions
Antoine Pitrou
report at bugs.python.org
Fri Dec 19 18:54:49 CET 2014
Antoine Pitrou added the comment:
> Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer and_PyBuffer_Converter) accept only C-contiguous buffers?
PyBUF_SIMPLE enforces contiguity. See https://www.python.org/dev/peps/pep-3118/#access-flags and https://docs.python.org/3/c-api/buffer.html#c.Py_buffer.len
Also Stefan's post at http://mail.scipy.org/pipermail/numpy-discussion/2011-August/058189.html
Perhaps Stefan can confirm.
----------
nosy: +skrah
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22896>
_______________________________________
More information about the Python-bugs-list
mailing list