diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2017-11-04 20:20:19 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-04 20:20:19 -0600 |
| commit | a2bddfa976225954ba345853aa3aa3817950dafc (patch) | |
| tree | 8f3af95591bdd4ddeff59c5dd02751f8ecf50ad5 /doc/source/reference | |
| parent | 44394699dea2534c5bb0c5e2e1759b066401def3 (diff) | |
| parent | 7cfbaf67ce18474c0c01b9e50052863112382742 (diff) | |
| download | numpy-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.rst | 6 |
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) |
