summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-15 09:55:41 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-08-15 09:55:41 -0700
commit580a3b60abfb9fa7f9866a87dc90f7bbc6bed184 (patch)
tree80de6fa4c44726b7b146e60c02a31e94ff942cb9 /numpy
parent4d6575b9dfbd07b8d78d8d837d0f4810974f943f (diff)
parentdf1aa99739ce194713c11a3685b9e99ac1ee1f94 (diff)
downloadnumpy-580a3b60abfb9fa7f9866a87dc90f7bbc6bed184.tar.gz
Merge pull request #3608 from charris/remove-1.8-diagonal-refs
DOC: Remove references to diagonal changes in 1.8.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/fromnumeric.py4
-rw-r--r--numpy/core/src/multiarray/arrayobject.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 64dfddfbb..9d7c226fc 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1130,10 +1130,10 @@ def diagonal(a, offset=0, axis1=0, axis2=1):
on this fact is deprecated. Writing to the resulting array continues to
work as it used to, but a FutureWarning will be issued.
- In NumPy 1.8, it will switch to returning a read-only view on the original
+ In NumPy 1.9, it will switch to returning a read-only view on the original
array. Attempting to write to the resulting array will produce an error.
- In NumPy 1.9, it will still return a view, but this view will no longer be
+ In NumPy 1.10, it will still return a view, but this view will no longer be
marked read-only. Writing to the returned array will alter your original
array as well.
diff --git a/numpy/core/src/multiarray/arrayobject.c b/numpy/core/src/multiarray/arrayobject.c
index 062b839aa..6db6060c9 100644
--- a/numpy/core/src/multiarray/arrayobject.c
+++ b/numpy/core/src/multiarray/arrayobject.c
@@ -705,7 +705,7 @@ array_might_be_written(PyArrayObject *obj)
const char *msg =
"Numpy has detected that you (may be) writing to an array returned\n"
"by numpy.diagonal or by selecting multiple fields in a record\n"
- "array. This code will likely break in the next numpy release --\n"
+ "array. This code will likely break in a future numpy release --\n"
"see numpy.diagonal or arrays.indexing reference docs for details.\n"
"The quick fix is to make an explicit copy (e.g., do\n"
"arr.diagonal().copy() or arr[['f0','f1']].copy()).";