summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api/array.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/c-api/array.rst')
-rw-r--r--doc/source/reference/c-api/array.rst24
1 files changed, 11 insertions, 13 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst
index 901affe8b..26a8f643d 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -1540,19 +1540,6 @@ specify desired properties of the new array.
Make sure the resulting object is an actual ndarray, and not a sub-class.
-These constant are used in :c:func:`PyArray_DescrNewByteorder` to describe the
-byteorder of the new datatype.
-
-.. c:macro:: NPY_IGNORE
-
-.. c:macro:: NPY_SWAP
-
-.. c:macro:: NPY_NATIVE
-
-.. c:macro:: NPY_LITTLE
-
-.. c:macro:: NPY_BIG
-
Flag checking
^^^^^^^^^^^^^
@@ -2849,6 +2836,17 @@ Data-type descriptors
*newendian*. All referenced data-type objects (in subdescr and
fields members of the data-type object) are also changed
(recursively).
+
+ The value of *newendian* is one of these macros:
+..
+ dedent the enumeration of flags to avoid missing references sphinx warnings
+
+.. c:macro:: NPY_IGNORE
+ NPY_SWAP
+ NPY_NATIVE
+ NPY_LITTLE
+ NPY_BIG
+
If a byteorder of :c:data:`NPY_IGNORE` is encountered it
is left alone. If newendian is :c:data:`NPY_SWAP`, then all byte-orders
are swapped. Other valid newendian values are :c:data:`NPY_NATIVE`,