summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2017-11-08 22:49:19 +0200
committerNathaniel J. Smith <njs@pobox.com>2017-11-08 14:49:19 -0600
commit1368cbb696ae27b849eed67b4fd31c550a55dad5 (patch)
tree7fe99f6c4483d5a1bd6e3883279b2b38fcd85970 /numpy/random
parentc276f326b29bcb7c851169d34f4767da0b4347af (diff)
downloadnumpy-1368cbb696ae27b849eed67b4fd31c550a55dad5.tar.gz
DEP, ENH: deprecate UPDATEIFCOPY (except for nditer) and replace with WRITEBACKIFCOPY (#9639)
* ENH: add API to resolve UPDATEONCOPY outside dealloc, test and use * BUG: Fix usage of keyword "from" as argument name for "can_cast". Also removed inconsistency between the second argument name between documentation ("totype") and code ("to"). * UPDATEIFCOPY -> WRITEBACKIFCOPY, documentation * fixes for review * review2, fix new test * fix new test for using self.assert_deprecated * change deprecation logic as per review * new logic exposed places where PyArray_ResolveWritebackIfCopy not called * deprecate PyArray_XDECREF_ERR in favor of PyArray_DiscardWritebackIfCopy * code review changes * clean up merge cruft * fix from review * fixes from review * extend the release note
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/numpy.pxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/mtrand/numpy.pxd b/numpy/random/mtrand/numpy.pxd
index db6265238..9092fa113 100644
--- a/numpy/random/mtrand/numpy.pxd
+++ b/numpy/random/mtrand/numpy.pxd
@@ -41,7 +41,7 @@ cdef extern from "numpy/arrayobject.h":
NPY_ARRAY_ALIGNED
NPY_ARRAY_NOTSWAPPED
NPY_ARRAY_WRITEABLE
- NPY_ARRAY_UPDATEIFCOPY
+ NPY_ARRAY_WRITEBACKIFCOPY
NPY_ARR_HAS_DESCR
NPY_ARRAY_BEHAVED