summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-03-22 20:09:54 +0000
committerEric Wieser <wieser.eric@gmail.com>2020-03-22 20:15:56 +0000
commit68563e997aab1208c71efec5698c24214d840cda (patch)
tree9c27125f17d7ae782fe91720be4d16a66730e6df /numpy/core/numeric.py
parent90e644e7c668d52155e9a07b1032e71974e3dc7d (diff)
downloadnumpy-68563e997aab1208c71efec5698c24214d840cda.tar.gz
DEP: Make np.delete on out-of-bounds indices an error
Note that this only affects lists of indices. ```python >>> a = np.arange(3) ```` Before: ```python >>> np.delete(a, 100) IndexError >>> np.delete(a, [100]) DeprecationWarning array([0, 1, 2]) >>> np.delete(a, -1) array([0, 1]) >>> np.delete(a, [-1]) FutureWarning array([0, 1, 2]) ``` After: ```python >>> np.delete(a, 100) IndexError >>> np.delete(a, [100]) IndexError >>> np.delete(a, -1) array([0, 1]) >>> np.delete(a, [-1]) array([0, 1]) ```
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions