summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2013-10-01 22:30:09 +0300
committerPauli Virtanen <pav@iki.fi>2013-10-19 23:23:49 +0300
commitfd5d3088ed71bbc2fe5a774178be5e0ba04e4cd1 (patch)
tree9783211ff93f6ec17a30382a8aae3818ec059eb5 /numpy/polynomial/polyutils.py
parent18acfa462a63bcdaf86360f0c94bc9347ecafad5 (diff)
downloadnumpy-fd5d3088ed71bbc2fe5a774178be5e0ba04e4cd1.tar.gz
BUG: core: ensure __r*__ has precedence over __numpy_ufunc__
Add a special case to the implementation of ndarray.__mul__ et al. that refuses to work on other objects that are not ndarray subclasses and implement both __numpy_ufunc__ and __r*__. This way, execution passes first to the custom __r*__ method, which makes it possible to have e.g. __mul__ and np.multiply do different things. Additionally, disable one __array_priority__ special case handling when also __numpy_ufunc__ is defined.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions