summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorJosh Wilson <person142@users.noreply.github.com>2020-03-22 11:54:37 -0700
committerJosh Wilson <person142@users.noreply.github.com>2020-03-22 11:54:37 -0700
commit7ccadc342e8eb519873fa330fd57a97ebe6c575f (patch)
treec4900f1b63a706b04b6c4254efb552f562cf6218 /numpy/lib/tests
parentbcce3ac27e05ffd10584c3c8c666dade21714d1f (diff)
downloadnumpy-7ccadc342e8eb519873fa330fd57a97ebe6c575f.tar.gz
DOC: correct possible list lengths for `extobj` in ufunc calls
According to the docs, the list can be of lengths 1, 2, or 3, but only length 3 appears to work: ``` >>> import numpy as np >>> np.sin(1, extobj=[16, 1, lambda: None]) 0.8414709848078965 >>> np.sin(1, extobj=[16, 1]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: UFUNC_PYVALS must be a length 3 list. >>> np.sin(1, extobj=[16]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: UFUNC_PYVALS must be a length 3 list. ```
Diffstat (limited to 'numpy/lib/tests')
0 files changed, 0 insertions, 0 deletions