diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-11-21 17:32:47 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-11-21 17:32:47 -0700 |
commit | 013dd26851bfcac73671fd3df85cf8a04c1ff200 (patch) | |
tree | 2d8dc2fd53a7ae83dcbc1601a8e128d7b2e2337f /doc | |
parent | a91309771b0025c4e291501d0c00bf4178a66c38 (diff) | |
download | numpy-013dd26851bfcac73671fd3df85cf8a04c1ff200.tar.gz |
DEP: Make a == None and a != None compare element-wise.
These changes have been warned of since numpy 1.7.0 for the == case and
since numpy 1.8 for the != case. This makes both operators compare
element-wise for this case.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.13.0-notes.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst index bd5be6859..4b8bcc973 100644 --- a/doc/release/1.13.0-notes.rst +++ b/doc/release/1.13.0-notes.rst @@ -33,9 +33,8 @@ DeprecationWarning to error FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ``numpy.average`` now preserves subclasses, matching the behavior of most - other numpy functions such as ``mean``. As a consequence, also calls that - returned a scalar may now return a subclass array scalar. +* ``numpy.average`` preserves subclasses +* ``array == None`` and ``array != None`` do element-wise comparison. C API @@ -65,3 +64,8 @@ For ndarray subclasses, ``numpy.average`` will now return an instance of the subclass, matching the behavior of most other numpy functions such as ``mean``. As a consequence, also calls that returned a scalar may now return a subclass array scalar. + +``array == None`` and ``array != None`` do element-wise comparison +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Previously these operations returned scalars ``False`` and ``True`` respectively. + |