diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-10-25 07:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 07:58:45 +0200 |
commit | 56388f8f582b7800bc3af84958e2d1b0eae1bc05 (patch) | |
tree | b678566a4577218db8f758c4e04ec8bc651a8673 /doc/source/reference/c-api | |
parent | 043a0421504396fa7ab0f27d66f8bb5ea539606a (diff) | |
parent | 54a61a8afbee6c1b4aab1d7e71c5d0e6e1bbf862 (diff) | |
download | numpy-56388f8f582b7800bc3af84958e2d1b0eae1bc05.tar.gz |
Merge pull request #17630 from takanori-pskq/i13114-capsule
DOC: Replace ``PyCObject`` with ``PyCapsule``
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/types-and-structures.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst index d9c48c039..9b92e1391 100644 --- a/doc/source/reference/c-api/types-and-structures.rst +++ b/doc/source/reference/c-api/types-and-structures.rst @@ -611,7 +611,8 @@ PyArrayDescr_Type and PyArray_Descr Either ``NULL`` or a dictionary containing low-level casting functions for user- defined data-types. Each function is - wrapped in a :c:type:`PyCObject *` and keyed by the data-type number. + wrapped in a :c:type:`PyCapsule *<PyCapsule>` and keyed by + the data-type number. .. c:member:: NPY_SCALARKIND scalarkind(PyArrayObject* arr) @@ -1331,7 +1332,7 @@ PyArrayInterface other extension modules can use the rapid array interface protocol. The :obj:`__array_struct__` method of an object that supports the rapid array interface protocol should return a - :c:type:`PyCObject` that contains a pointer to a :c:type:`PyArrayInterface` + :c:type:`PyCapsule` that contains a pointer to a :c:type:`PyArrayInterface` structure with the relevant details of the array. After the new array is created, the attribute should be ``DECREF``'d which will free the :c:type:`PyArrayInterface` structure. Remember to ``INCREF`` the |