diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-11-26 12:53:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-26 12:53:22 -0500 |
commit | dc27edb92ec70b5c0ade8ecd1ed78884a0a0a5dc (patch) | |
tree | 3cd86d0a2bad55eeb8a51ec460e532e4ac47bd64 /doc | |
parent | 7ec8f69a82528dabf6eb1e480293715dd3d02697 (diff) | |
parent | f562e5bcf699d3e30c204107c8e843290ac797d0 (diff) | |
download | numpy-dc27edb92ec70b5c0ade8ecd1ed78884a0a0a5dc.tar.gz |
Merge pull request #8297 from charris/expired-deprecations
DEP: Handle expired deprecations.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.13.0-notes.rst | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst index b9f49b196..51beffce3 100644 --- a/doc/release/1.13.0-notes.rst +++ b/doc/release/1.13.0-notes.rst @@ -38,13 +38,22 @@ existing use. DeprecationWarning to error ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +See Changes section for more detail. + +* ``partition``, TypeError when non-integer partition index is used. +* ``NpyIter_AdvancedNew``, ValueError when `oa_ndim == 0` and `op_axes` is NULL +* ``negative(bool_)``, TypeError when negative applied to booleans. +* ``subtract(bool_, bool_)``, TypeError when subtracting boolean from boolean. +* ``np.equal, np.not_equal``, object identity doesn't override failed comparison. +* ``np.equal, np.not_equal``, object identity doesn't override non-boolean comparison. FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +See Changes section for more detail. -* ``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. +* ``np.equal, np.not_equal``, object identity doesn't override comparison result. C API @@ -74,3 +83,15 @@ 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. + +``np.equal, np.not_equal`` for object arrays ignores object identity +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Previously, these functions always treated identical objects as equal. This had +the effect of overriding comparison failures, comparison of objects that did +not return booleans, such as np.arrays, and comparison of objects where the +results differed from object identity, such as NaNs. + |