summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authortakanori-pskq <takanori17h@gmail.com>2020-10-25 13:58:13 +0900
committertakanori-pskq <takanori17h@gmail.com>2020-10-25 13:58:13 +0900
commit54a61a8afbee6c1b4aab1d7e71c5d0e6e1bbf862 (patch)
tree2204094fa1fbbcf5c82046035af4440529a419a0 /doc/source/reference/c-api
parentd483de0f32baec73b0856230dd35f08373ecbb85 (diff)
downloadnumpy-54a61a8afbee6c1b4aab1d7e71c5d0e6e1bbf862.tar.gz
DOC: Replace ``PyCObject`` with ``PyCapsule``
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/types-and-structures.rst5
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 8c1a679dc..a9857391f 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)
@@ -1325,7 +1326,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