summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-11-20 16:25:52 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2020-11-24 15:03:04 -0600
commitb17dd63a01585e001e6a75daf89ea0bbbdd8fce4 (patch)
tree4e36ec19bacee6d829aec502525d6872ff70ab9a /numpy/lib/utils.py
parentb88b2c0c19851810d4ee07f03a7734b6e19dbdaa (diff)
downloadnumpy-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