mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsets
are required.
This commit is contained in:
parent
7213fcc27e
commit
0dc4e153a2
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue