diff options
author | Pauli Virtanen <pav@iki.fi> | 2014-05-14 21:37:16 +0300 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2014-05-14 21:37:16 +0300 |
commit | da40eba435d2b39c7d251f91d446ed411d71d3f5 (patch) | |
tree | b3cb446379a6b8d959801583d0a3ab9d566b548e /numpy/lib/nanfunctions.py | |
parent | afe32d77b3540f11ff564f851f1db5afd26857b3 (diff) | |
download | numpy-da40eba435d2b39c7d251f91d446ed411d71d3f5.tar.gz |
BUG: core: allow scalar type richcompare to call ndarray-subclass methods
This makes the scalar richcmp behave exactly as
"array(self) <op> other". The difference comes in when "other" is an ndarray
subclass, in which case this change allows the subclass to override the
comparison operations via usual Python binop dispatch rules.
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions