summaryrefslogtreecommitdiff
path: root/doc/source/reference
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-11-04 20:20:19 -0600
committerGitHub <noreply@github.com>2017-11-04 20:20:19 -0600
commita2bddfa976225954ba345853aa3aa3817950dafc (patch)
tree8f3af95591bdd4ddeff59c5dd02751f8ecf50ad5 /doc/source/reference
parent44394699dea2534c5bb0c5e2e1759b066401def3 (diff)
parent7cfbaf67ce18474c0c01b9e50052863112382742 (diff)
downloadnumpy-a2bddfa976225954ba345853aa3aa3817950dafc.tar.gz
Merge pull request #9953 from eric-wieser/add-unsized
MAINT: Add a PyDataType_ISUNSIZED macro
Diffstat (limited to 'doc/source/reference')
-rw-r--r--doc/source/reference/c-api.array.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst
index 79a886e71..7e42d3c5f 100644
--- a/doc/source/reference/c-api.array.rst
+++ b/doc/source/reference/c-api.array.rst
@@ -947,6 +947,12 @@ argument must be a :c:type:`PyObject *<PyObject>` that can be directly interpret
Type represents one of the flexible array types ( :c:data:`NPY_STRING`,
:c:data:`NPY_UNICODE`, or :c:data:`NPY_VOID` ).
+.. c:function:: PyDataType_ISUNSIZED(descr):
+
+ Type has no size information attached, and can be resized. Should only be
+ called on flexible dtypes. Types that are attached to an array will always
+ be sized, hence the array form of this macro not existing.
+
.. c:function:: PyTypeNum_ISUSERDEF(num)
.. c:function:: PyDataType_ISUSERDEF(descr)