diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-04-11 11:04:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 11:04:07 -0400 |
commit | c6bee683578d6549efb8cd972ebb2592b44ac2cc (patch) | |
tree | 554565673894fdbd80071671627cbe56747c3f5c /doc | |
parent | 40ef8a6ade7282c613d58ed24c68915d61dcc07b (diff) | |
parent | 358f8220a298807c48963125d941dcd93a27ccc0 (diff) | |
download | numpy-c6bee683578d6549efb8cd972ebb2592b44ac2cc.tar.gz |
Merge pull request #10745 from eric-wieser/comparison-object-loop
ENH: Add object loops to the comparison ufuncs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.15.0-notes.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/1.15.0-notes.rst b/doc/release/1.15.0-notes.rst index 34c2a6a61..4cfad0fc5 100644 --- a/doc/release/1.15.0-notes.rst +++ b/doc/release/1.15.0-notes.rst @@ -213,6 +213,12 @@ This change makes it easier to write Python 2/3 compatible code using ``from __future__ import unicode_literals``, which previously would cause string literal field names to raise a TypeError in Python 2. +Comparison ufuncs accept ``dtype=object``, overriding the default ``bool`` +-------------------------------------------------------------------------- +This allows object arrays of symbolic types, which override ``==`` and other +operators to return expressions, to be compared elementwise with +``np.equal(a, b, dtype=object)``. + ``sort`` functions accept ``kind='stable'`` ------------------------------------------- Up until now, to perform a stable sort on the data, the user must do:: |