diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-06-14 13:39:29 -0400 |
---|---|---|
committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-06-19 07:17:22 -0400 |
commit | 4272dd02f5ed21a3f850915cffdbbddc07be9064 (patch) | |
tree | 6f3757e0f928f24f4b1d8080e153980000ca16d0 /doc/release | |
parent | 6c25ca1ddfd8d02375544ba9be03b654a62997ba (diff) | |
download | numpy-4272dd02f5ed21a3f850915cffdbbddc07be9064.tar.gz |
DOC: add release note for change in output of comparison ufuncs.
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. |