diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-10-13 10:07:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 10:07:31 +0200 |
commit | 22c540ca17cf2e9a837cb543d581c13a71481fb3 (patch) | |
tree | 5e6196f244f98e6482e10e7017220e871395219b /doc/source/reference/c-api | |
parent | db7414b7f74e63f1ed5e415d1fa6cb22a3597086 (diff) | |
parent | 4e36c1bebdfca23f491c874bb4d97d829e381836 (diff) | |
download | numpy-22c540ca17cf2e9a837cb543d581c13a71481fb3.tar.gz |
Merge pull request #22411 from DimitriPapadopoulos/python2_doc
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 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) |