[Numpy-svn] r3609 - trunk/numpy/doc

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Mar 28 01:21:36 EDT 2007


Author: oliphant
Date: 2007-03-28 00:21:18 -0500 (Wed, 28 Mar 2007)
New Revision: 3609

Modified:
   trunk/numpy/doc/pep_buffer.txt
Log:
Modified buffer PEP.

Modified: trunk/numpy/doc/pep_buffer.txt
===================================================================
--- trunk/numpy/doc/pep_buffer.txt	2007-03-28 05:20:23 UTC (rev 3608)
+++ trunk/numpy/doc/pep_buffer.txt	2007-03-28 05:21:18 UTC (rev 3609)
@@ -344,24 +344,28 @@
 
 Copy ``len`` bytes of data pointed to by the contiguous chunk of
 memory pointed to by ``buf`` into the buffer exported by obj.  Return
-0 on success and return -1 and raise an error on failure.  If the 
-object does not have a writeable buffer, then an error is raised.  
-The data is copied into an array in C-style contiguous fashion meaning the
-last variable varies the fastest. 
+0 on success and return -1 and raise an error on failure.  If the
+object does not have a writeable buffer, then an error is raised.  The
+data is copied into an array in C-style contiguous fashion meaning the
+last variable varies the fastest.
 
-The last two C-API calls allow a standard way of getting data in and out
-of Python objects no matter how it is actually stored.  These calls use
-the buffer interface to perform their work. 
+The last two C-API calls allow a standard way of getting data in and
+out of Python objects no matter how it is actually stored.  These
+calls use the buffer interface to perform their work.
 
 ::
-    int PyObject_IsContiguous(int *ndims, Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t *suboffsets)
+    int PyObject_IsContiguous(int *ndims, Py_ssize_t *shape, 
+                              Py_ssize_t *strides, Py_ssize_t *suboffsets)
 
-Return 1 if the memory defined by shape, strides, and suboffsets is contiguous.  Return 0 otherwise. 
+Return 1 if the memory defined by shape, strides, and suboffsets is
+contiguous.  Return 0 otherwise.
 
 ::
-    void PyObject_FillContiguousStrides(int *ndims, Py_ssize_t *shape, Py_ssize_t *strides)
+    void PyObject_FillContiguousStrides(int *ndims, Py_ssize_t *shape, 
+                                        Py_ssize_t *strides)
 
-Fill the strides array with byte-strides of a contiguous array of the given shape. 
+Fill the strides array with byte-strides of a contiguous array of the
+given shape.
 
 
 




More information about the Numpy-svn mailing list