summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2014-05-14 21:37:16 +0300
committerPauli Virtanen <pav@iki.fi>2014-05-14 21:37:16 +0300
commitda40eba435d2b39c7d251f91d446ed411d71d3f5 (patch)
treeb3cb446379a6b8d959801583d0a3ab9d566b548e /numpy/lib/nanfunctions.py
parentafe32d77b3540f11ff564f851f1db5afd26857b3 (diff)
downloadnumpy-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