[Numpy-svn] r3554 - trunk/numpy/doc
Tue Feb 27 19:09:06 CST 2007
Date: 2007-02-27 19:09:01 -0600 (Tue, 27 Feb 2007)
New Revision: 3554
--- trunk/numpy/doc/pep_buffer.txt 2007-02-28 01:00:07 UTC (rev 3553)
+++ trunk/numpy/doc/pep_buffer.txt 2007-02-28 01:09:01 UTC (rev 3554)
@@ -109,13 +109,13 @@
typedef PyObject *(*getbufferproc)(PyObject *obj, void **buf,
Py_ssize_t *len, int requires)
- Return a pointer to memory in buf and the length of that memory
- buffer in buf. Requirements for the memory are provided in
+ Return a pointer to memory in *buf and the length of that memory
+ buffer in *len. Requirements for the memory are provided in
requires (PYBUFFER_WRITE, PYBUFFER_ONESEGMENT). NULL is
returned and an error raised if the object cannot return a view
with those requirements. Otherwise, an object-specific "view"
- object is returned (which can just be a borrowed reference to
+ object is returned (which can just be as simple as a borrowed
+ reference to obj).
This view object should be used in the other API calls and
does not need to be decref'd. It should be "released" if the
@@ -126,7 +126,7 @@
This function is called when a view of memory previously
acquired from the object is no longer needed. It is up to the
exporter of the API to make sure all views have been released
- before eliminating a reference to a previously returned pointer.
+ before re-allocating the previously returned pointer.
It is up to consumers of the API to call this function on the
object whose view is obtained when it is no longer needed. A -1
is returned on error and 0 on success.
@@ -224,9 +224,9 @@
ctypes and NumPy for example). Here are the proposed additions:
'1' bit (number before states how many bits)
- '?' platform _Bool type
+ 't' platform _Bool type if available
'g' long double
'F' complex float
'D' complex double
More information about the Numpy-svn