diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-10-25 08:03:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 08:03:52 +0200 |
commit | 119a0330c9cbeb13fbf8801b4f5d956659ff92cc (patch) | |
tree | 5c5a9e7ac61349c098a6f5f293641962c689bb52 /doc/source/reference/arrays.interface.rst | |
parent | 56388f8f582b7800bc3af84958e2d1b0eae1bc05 (diff) | |
parent | bc90452a095424bf837736a8615407ab4f1dd649 (diff) | |
download | numpy-119a0330c9cbeb13fbf8801b4f5d956659ff92cc.tar.gz |
Merge pull request #17627 from takanori-pskq/i13114-array-struct
DOC: Fix the references for ``__array_*__``
Diffstat (limited to 'doc/source/reference/arrays.interface.rst')
-rw-r--r-- | doc/source/reference/arrays.interface.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/reference/arrays.interface.rst b/doc/source/reference/arrays.interface.rst index d0a1c06c4..6a8c5f9c4 100644 --- a/doc/source/reference/arrays.interface.rst +++ b/doc/source/reference/arrays.interface.rst @@ -49,9 +49,9 @@ Python side =========== This approach to the interface consists of the object having an -:data:`__array_interface__` attribute. +:data:`~object.__array_interface__` attribute. -.. data:: __array_interface__ +.. data:: object.__array_interface__ A dictionary of items (3 required and 5 optional). The optional keys in the dictionary have implied defaults if they are not @@ -189,7 +189,7 @@ C-struct access This approach to the array interface allows for faster access to an array using only one attribute lookup and a well-defined C-structure. -.. c:var:: __array_struct__ +.. data:: object.__array_struct__ A :c:type:`PyCapsule` whose ``pointer`` member contains a pointer to a filled :c:type:`PyArrayInterface` structure. Memory @@ -248,7 +248,7 @@ Type description examples ========================= For clarity it is useful to provide some examples of the type -description and corresponding :data:`__array_interface__` 'descr' +description and corresponding :data:`~object.__array_interface__` 'descr' entries. Thanks to Scott Gilbert for these examples: In every case, the 'descr' key is optional, but of course provides |