Commit 0dc4e153 authored by Stefan Krah's avatar Stefan Krah

Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsets

are required.
parent 7213fcc2
......@@ -198,6 +198,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
indicates that no de-referencing should occur (striding in a contiguous
memory block).
If all suboffsets are negative (i.e. no de-referencing is needed, then
this field must be NULL (the default value).
This type of array representation is used by the Python Imaging Library
(PIL). See `complex arrays`_ for further information how to access elements
of such an array.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment