Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7232986

Browse files
committed
MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code
2 parents 5827da3 + ca5c715 commit 7232986

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/c-api/buffer.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
8989

9090
.. c:type:: Py_buffer
9191
92+
.. c:member:: void \*buf
93+
94+
A pointer to the start of the logical structure described by the buffer
95+
fields. This can be any location within the underlying physical memory
96+
block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
97+
the value may point to the end of the memory block.
98+
99+
For contiguous arrays, the value points to the beginning of the memory
100+
block.
101+
92102
.. c:member:: void \*obj
93103
94104
A new reference to the exporting object. The reference is owned by
@@ -101,16 +111,6 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
101111
this field is *NULL*. In general, exporting objects MUST NOT
102112
use this scheme.
103113

104-
.. c:member:: void \*buf
105-
106-
A pointer to the start of the logical structure described by the buffer
107-
fields. This can be any location within the underlying physical memory
108-
block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
109-
the value may point to the end of the memory block.
110-
111-
For contiguous arrays, the value points to the beginning of the memory
112-
block.
113-
114114
.. c:member:: Py_ssize_t len
115115
116116
``product(shape) * itemsize``. For contiguous arrays, this is the length

0 commit comments

Comments
 (0)