FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Issue #23352: Document that Py_buffer.suboffsets must be NULL if no s… · python/cpython@0dc4e15 · GitHub

Repository navigation

Commit 0dc4e15

Browse files
Stefan Krah
committed
Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsets
are required.
1 parent 7213fcc commit 0dc4e15

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Doc/c-api/buffer.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
198198
indicates that no de-referencing should occur (striding in a contiguous
199199
memory block).
200200

201+
If all suboffsets are negative (i.e. no de-referencing is needed, then
202+
this field must be NULL (the default value).
203+
201204
This type of array representation is used by the Python Imaging Library
202205
(PIL). See `complex arrays`_ for further information how to access elements
203206
of such an array.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL