diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-11-20 16:25:52 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-11-24 15:03:04 -0600 |
commit | b17dd63a01585e001e6a75daf89ea0bbbdd8fce4 (patch) | |
tree | 4e36ec19bacee6d829aec502525d6872ff70ab9a /numpy/lib/utils.py | |
parent | b88b2c0c19851810d4ee07f03a7734b6e19dbdaa (diff) | |
download | numpy-b17dd63a01585e001e6a75daf89ea0bbbdd8fce4.tar.gz |
BUG: Ignore fewer errors during array-coercion
This changes it so that we only ignore attribute errors on
looking up `__array__` and propagate errors when checking
for sequences `len(obj)` if those errors are either
RecursionError or MemoryError (we consider them unrecoverable).
Also adds test for bad recursive array-like with sequence
as reported in gh-17785. The test might be flaky/more complicated
in which case it should probably just be deleted.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions