summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-02-09 11:22:55 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-02-10 18:28:07 +0000
commitfa040cada9e832a6d23f359a4029953d14acca0a (patch)
treea64395aaa2c25966399aee341ef60be7b65987cb /doc
parent1b877254af0850d025cdc5d07b3fcaa1614dbe4b (diff)
downloadnumpy-fa040cada9e832a6d23f359a4029953d14acca0a.tar.gz
BUG: make np.squeeze always return an array, never a scalar
Fixes #8588
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.13.0-notes.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst
index c70568821..43bf3c7b8 100644
--- a/doc/release/1.13.0-notes.rst
+++ b/doc/release/1.13.0-notes.rst
@@ -76,6 +76,11 @@ obvious exception of any code that tries to directly call
``ndarray.__getslice__`` (e.g. through ``super(...).__getslice__``). In
this case, ``.__getitem__(slice(start, end))`` will act as a replacement.
+``np.squeeze`` always returns an array when passed a scalar
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Previously, this was only the case when passed a python scalar, and it did not
+do array promotion when passed a numpy scalar.
+
C API
~~~~~