[docs] [issue33126] Some C buffer protocol APIs not documented

Stefan Krah report at bugs.python.org
Sat Mar 24 17:53:19 EDT 2018

Stefan Krah <stefan at bytereef.org> added the comment:

I fixed PyBuffer_ToContiguous() in 3.3, PyBuffer_FromContiguous() was broken until #23370.

For a start, here's a doc patch for PyBuffer_ToContiguous().

PyBuffer_FromContiguous() does the opposite and loads a contiguous buffer
into a possibly non-contiguous view.

PyObject_CopyData() copies the data from exporter src to the writable exporter dest.

I have never used the last two functions.

keywords: +patch
Added file: https://bugs.python.org/file47497/issue33126.diff

Python tracker <report at bugs.python.org>

More information about the docs mailing list