diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-06-21 08:55:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-21 08:55:21 -0400 |
commit | 9c43b1767e41726801e8ff70a23be7a0148d504c (patch) | |
tree | cc9dfcdc41aa7860455a36946b543c0112ce3cd2 /doc/release | |
parent | e1014afdde162f1cc18d0b8f8b69d3a41a4e15ae (diff) | |
parent | 533bb37a6091eaa12f58dd1afe84b01678315892 (diff) | |
download | numpy-9c43b1767e41726801e8ff70a23be7a0148d504c.tar.gz |
Merge pull request #11282 from mhvk/array-comparison-not-implementeduntagged-65f99747b229ae7de4cc
MAINT: move comparison operator special-handling out of ufunc parsing.
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/1.16.0-notes.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/release/1.16.0-notes.rst b/doc/release/1.16.0-notes.rst index 701ef1f6e..d9208e80b 100644 --- a/doc/release/1.16.0-notes.rst +++ b/doc/release/1.16.0-notes.rst @@ -37,3 +37,13 @@ Improvements Changes ======= + +Comparison ufuncs will now error rather than return NotImplemented +------------------------------------------------------------------ + +Previously, comparison ufuncs such as ``np.equal`` would return +`NotImplemented` if their arguments had structured dtypes, to help comparison +operators such as ``__eq__`` deal with those. This is no longer needed, as the +relevant logic has moved to the comparison operators proper (which thus do +continue to return `NotImplemented` as needed). Hence, like all other ufuncs, +the comparison ufuncs will now error on structured dtypes. |