diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2022-10-08 16:43:25 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2022-10-08 16:47:00 +0200 |
commit | 4e36c1bebdfca23f491c874bb4d97d829e381836 (patch) | |
tree | bfc7866ab0f947d7cf362fe25f99833890b5a440 /doc/source/reference/c-api | |
parent | 3cf2ca1611ecaf1d13c41075a7025b96e54e3ee3 (diff) | |
download | numpy-4e36c1bebdfca23f491c874bb4d97d829e381836.tar.gz |
DOC: Remove documentation specific to Python 2
Diffstat (limited to 'doc/source/reference/c-api')
-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 e4028b7b4..9e103ecb1 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) |