summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2015-05-07 20:10:53 -0700
committerCharles Harris <charlesr.harris@gmail.com>2015-06-13 12:32:54 -0600
commit4b1f508a57549d8031a23160b40c7f87f47892ed (patch)
tree1f1843b308d8431017573918e858b572325a738d /numpy/testing/utils.py
parent88937f8f1d61d889e6923de7e15b63e40fa9a8ee (diff)
downloadnumpy-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