diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2015-05-07 20:10:53 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-06-13 12:32:54 -0600 |
commit | 4b1f508a57549d8031a23160b40c7f87f47892ed (patch) | |
tree | 1f1843b308d8431017573918e858b572325a738d /numpy/testing/utils.py | |
parent | 88937f8f1d61d889e6923de7e15b63e40fa9a8ee (diff) | |
download | numpy-4b1f508a57549d8031a23160b40c7f87f47892ed.tar.gz |
MAINT: move the special case for string comparison before the regular case
The ndarray richcompare function has a special case for handling
string dtypes (which currently cannot be handled by
ufuncs). Traditionally this was handled by the ufuncs returning
NotImplemented, and then falling through to a special case. By moving
the special case to the top of the richcompare function, it becomes
unnecessary for the ufuncs to return NotImplemented in this case.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions