summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2014-06-25 03:38:40 (GMT)
committerJesus Cea <jcea@jcea.es>2014-06-25 03:38:40 (GMT)
commit7232986239fe0a5de3cfaf671d9e94af18ba8d8c (patch)
tree22da9d3f7de93fba65cde0619685877f2d2d5f73 /Doc/c-api
parent5827da3f9f79e37bd15e8a1ff52d0744e611d81b (diff)
parentca5c7153de0e14052483676b2cdf6791f1eeb7d2 (diff)
downloadcpython-7232986239fe0a5de3cfaf671d9e94af18ba8d8c.zip
cpython-7232986239fe0a5de3cfaf671d9e94af18ba8d8c.tar.gz
cpython-7232986239fe0a5de3cfaf671d9e94af18ba8d8c.tar.bz2
MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/buffer.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
index f703e9c..a7de37e 100644
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -89,6 +89,16 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
.. c:type:: Py_buffer
+ .. c:member:: void \*buf
+
+ A pointer to the start of the logical structure described by the buffer
+ fields. This can be any location within the underlying physical memory
+ block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
+ the value may point to the end of the memory block.
+
+ For contiguous arrays, the value points to the beginning of the memory
+ block.
+
.. c:member:: void \*obj
A new reference to the exporting object. The reference is owned by
@@ -101,16 +111,6 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
this field is *NULL*. In general, exporting objects MUST NOT
use this scheme.
- .. c:member:: void \*buf
-
- A pointer to the start of the logical structure described by the buffer
- fields. This can be any location within the underlying physical memory
- block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
- the value may point to the end of the memory block.
-
- For contiguous arrays, the value points to the beginning of the memory
- block.
-
.. c:member:: Py_ssize_t len
``product(shape) * itemsize``. For contiguous arrays, this is the length