From 88f78abbbd26f3e5d3b220c1b8af50cbeb512a55 Mon Sep 17 00:00:00 2001 From: mattip Date: Sat, 11 Nov 2017 21:13:04 +0200 Subject: DOC: reword PyArray_DiscardWritebackIfCopy description --- doc/source/reference/c-api.array.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/source/reference/c-api.array.rst') 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) -- cgit v1.2.1