diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-04-02 15:09:02 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-05-27 10:58:15 -0500 |
commit | 381a2f5ab22bf1b84870ec4dfb1ee04327faf918 (patch) | |
tree | 2e1d1806070d4f55d042403186b8b42485d2b647 /numpy/lib/format.py | |
parent | e4894aef5c93c845081388818a2eb4264c5e1d72 (diff) | |
download | numpy-381a2f5ab22bf1b84870ec4dfb1ee04327faf918.tar.gz |
DEP: Ensure indexing errors will be raised even on empty results
Previously, when the indexing result was empty, no check was done
for backward compatibility with pre 1.9 (assumingly).
This may have been only necessary when the outer iteration is empty
as opposed to when just the inner iteration is empty, though.
In any case, it is arguably buggy to ignore indexing errors in this
case. Since there may have been a reason back in the day, and this
is probably extremely rare, optiming for a brief deprecation period
for now.
Closes gh-15898
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Diffstat (limited to 'numpy/lib/format.py')
0 files changed, 0 insertions, 0 deletions