Author pitrou
Recipients Arfrever, belopolsky, larry, pitrou, serhiy.storchaka, skrah
Date 2014-12-19.17:54:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419011689.25.0.468891164645.issue22896@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-12-19 17:54:49pitrousetrecipients: + pitrou, belopolsky, larry, Arfrever, skrah, serhiy.storchaka
2014-12-19 17:54:49pitrousetmessageid: <1419011689.25.0.468891164645.issue22896@psf.upfronthosting.co.za>
2014-12-19 17:54:49pitroulinkissue22896 messages
2014-12-19 17:54:49pitroucreate