[Python-checkins] cpython (merge 3.3 -> 3.4): MERGE: Closes #21441: Reorder elements in documentation to match actual order

jesus.cea python-checkins at python.org
Wed Jun 25 05:39:07 CEST 2014


http://hg.python.org/cpython/rev/d9da4b77624b
changeset: 91385:d9da4b77624b
branch: 3.4
parent: 91382:713a774ca68a
parent: 91384:92d691c3ca00
user: Jesus Cea <jcea at jcea.es>
date: Wed Jun 25 05:38:06 2014 +0200
summary:
 MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code
files:
 Doc/c-api/buffer.rst | 20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -89,6 +89,16 @@
 
 .. 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 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /