summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-06-19 17:31:35 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-06-21 12:43:06 -0600
commitf6861923209df65d9c4253368061072eda67ea77 (patch)
tree4f7f1799456522e84728a5c9f08061f59d5ac555 /doc
parent5b8ec8915ef5e2fa58824411be4ea1e17736d08a (diff)
downloadnumpy-f6861923209df65d9c4253368061072eda67ea77.tar.gz
DEP,MAINT: Raise IndexError if axis != 0 when concatenating 1-D arrays.
This was deprecated in NumPy 1.7 with a warning that it would raise an error in the future. Tests for the new error are added and the test that allowed that special case is removed.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.10.0-notes.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst
index ed33cc9e3..d3b99cf76 100644
--- a/doc/release/1.10.0-notes.rst
+++ b/doc/release/1.10.0-notes.rst
@@ -52,6 +52,11 @@ relaxed stride checking
~~~~~~~~~~~~~~~~~~~~~~~
NPY_RELAXED_STRIDE_CHECKING is now true by default.
+Concatenation of 1d arrays along any but ``axis=0`` raises ``IndexError``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Using axis != 0 has raised a DeprecationWarning since NumPy 1.7, it now
+raises an error.
+
*np.ravel*, *np.diagonal* and *np.diag* now preserve subtypes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There was inconsistent behavior between *x.ravel()* and *np.ravel(x)*, as
@@ -76,6 +81,9 @@ which now returns a view in all cases.
The dtype structure (PyArray_Descr) has a new member at the end to cache
its hash value. This shouldn't affect any well-written applications.
+The change to the concatenation function DeprecationWarning also affects
+PyArray_ConcatenateArrays,
+
recarray field return types
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Previously the returned types for recarray fields accessed by attribute and by