diff options
Diffstat (limited to 'doc/source/reference/c-api/array.rst')
-rw-r--r-- | doc/source/reference/c-api/array.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index bb22a1b03..8772b494c 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -3047,14 +3047,14 @@ to. structure with base, ptr, len, and flags members. The :c:type:`PyArray_Chunk` structure is binary compatible with the Python's buffer object (through its len member on 32-bit platforms - and its ptr member on 64-bit platforms or in Python 2.5). On - return, the base member is set to *obj* (or its base if *obj* is - already a buffer object pointing to another object). If you need - to hold on to the memory be sure to INCREF the base member. The - chunk of memory is pointed to by *buf* ->ptr member and has length - *buf* ->len. The flags member of *buf* is :c:data:`NPY_ARRAY_ALIGNED` - with the :c:data:`NPY_ARRAY_WRITEABLE` flag set if *obj* has - a writeable buffer interface. + and its ptr member on 64-bit platforms). On return, the base member + is set to *obj* (or its base if *obj* is already a buffer object + pointing to another object). If you need to hold on to the memory + be sure to INCREF the base member. The chunk of memory is pointed + to by *buf* ->ptr member and has length *buf* ->len. The flags + member of *buf* is :c:data:`NPY_ARRAY_ALIGNED` with the + :c:data:`NPY_ARRAY_WRITEABLE` flag set if *obj* has a writeable + buffer interface. .. c:function:: int PyArray_AxisConverter(PyObject* obj, int* axis) |