summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_index_tricks.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-01-24 23:37:51 -0800
committerEric Wieser <wieser.eric@gmail.com>2018-04-22 12:40:12 -0700
commit40868df10690fe57f182064fb284ff6807a74dbb (patch)
treecf105f3c70b8ac15a4dd6afc5b1edd7ae3621a3d /numpy/lib/tests/test_index_tricks.py
parente0b5e8740efe6d42c909c1374494e614592c65ab (diff)
downloadnumpy-40868df10690fe57f182064fb284ff6807a74dbb.tar.gz
BUG: Calling convention of ufunc.__call__ should not affect __array_prepare__ or __array_wrap__ arguments
This fixes gh-10450. The effect here is that all of these will pass `args=(in1, in2)` to `__array_prepare__` and `__array_wrap__`: * `ufunc(in1, in2)` - unchanged * `ufunc(in1, in2, None)` - previously: * prepare: `(in1, in2, None)` * wrap: `(in1, in2, None)` * `ufunc(in1, in2, out=None)` - previously: * prepare: `(in1, in2, None)` * `ufunc(in1, in2, out=(None,))` - previously * prepare: `(in1, in2, (None,))` Whereas these will pass `args=(in1, in2, out)`; * `ufunc(in1, in2, out)` - unchanged * `ufunc(in1, in2, out=out)` - previously * wrap: `(in1, in2)` * `ufunc(in1, in2, out=(out,))` - previously * prepare: not called on out at all! * wrap: `(in1, in2)`
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
0 files changed, 0 insertions, 0 deletions