diff options
author | Josh Wilson <person142@users.noreply.github.com> | 2020-03-22 11:54:37 -0700 |
---|---|---|
committer | Josh Wilson <person142@users.noreply.github.com> | 2020-03-22 11:54:37 -0700 |
commit | 7ccadc342e8eb519873fa330fd57a97ebe6c575f (patch) | |
tree | c4900f1b63a706b04b6c4254efb552f562cf6218 /numpy/lib/tests | |
parent | bcce3ac27e05ffd10584c3c8c666dade21714d1f (diff) | |
download | numpy-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