summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorJohn Kirkham <kirkhamj@janelia.hhmi.org>2016-01-15 15:00:07 -0500
committerJohn Kirkham <kirkhamj@janelia.hhmi.org>2016-01-15 15:42:57 -0500
commitef09a84e10fa3439ea17f8531431ae874df3afa1 (patch)
treede40aeb2a3a7aafcbe94f17db436343f2ffd209e /doc/release
parent5fc07a2f5357a638a979abfae9f208784a00a5d7 (diff)
downloadnumpy-ef09a84e10fa3439ea17f8531431ae874df3afa1.tar.gz
DOC: Explain the new exception behavior of `np.dot` when its types cannot be cast to a common type.
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.11.0-notes.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst
index b5d22d770..cd4f83557 100644
--- a/doc/release/1.11.0-notes.rst
+++ b/doc/release/1.11.0-notes.rst
@@ -59,6 +59,13 @@ to preserve struct layout). These were never used for anything, so
it's unlikely that any third-party code is using them either, but we
mention it here for completeness.
+*np.dot* now raises ``TypeError`` instead of ``ValueError``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+This behaviour mimics that of other functions such as ``np.inner``. If the two
+arguments cannot be cast to a common type, it could have raised a ``TypeError``
+or ``ValueError`` depending on their order. Now, ``np.dot`` will now always
+raise a ``TypeError``.
+
New Features
============
@@ -174,6 +181,13 @@ This behaviour mimics that of other functions such as ``np.diagonal`` and
ensures, e.g., that for masked arrays ``np.trace(ma)`` and ``ma.trace()`` give
the same result.
+*np.dot* now raises ``TypeError`` instead of ``ValueError``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+This behaviour mimics that of other functions such as ``np.inner``. If the two
+arguments cannot be cast to a common type, it could have raised a ``TypeError``
+or ``ValueError`` depending on their order. Now, ``np.dot`` will now always
+raise a ``TypeError``.
+
Deprecations
============