diff options
Diffstat (limited to 'doc/source/reference/c-api.array.rst')
-rw-r--r-- | doc/source/reference/c-api.array.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index d3aa7cafb..343bbc29c 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -3471,10 +3471,11 @@ Miscellaneous Macros .. c:function:: PyArray_DiscardWritebackIfCopy(PyObject* obj) Reset the :c:data:`NPY_ARRAY_WRITEBACKIFCOPY` and deprecated - :c:data:`NPY_ARRAY_UPDATEIFCOPY` flag. Also resets the - :c:data:`NPY_ARRAY_WRITEABLE` flag on the base object. This is + :c:data:`NPY_ARRAY_UPDATEIFCOPY` flag. Resets the + :c:data:`NPY_ARRAY_WRITEABLE` flag on the base object. It also + deletes pending changes to the base object. This is useful for recovering from an error condition when - writeback semantics are used, but will lead to wrong results. + writeback semantics are used. .. c:function:: PyArray_XDECREF_ERR(PyObject* obj) |