diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-11 12:02:37 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-11 13:56:07 -0600 |
commit | cce2142a648f0c19eb9851c0cb51521d617d1acb (patch) | |
tree | aa091c67c1f062abf34fccc5b59ee42583dca17a /numpy/lib/arraypad.py | |
parent | a190258d4e90f2a17a9469e5dd9fb5f4b045aa90 (diff) | |
download | numpy-cce2142a648f0c19eb9851c0cb51521d617d1acb.tar.gz |
BUG: Ensure too many advanced indices raises an exception
The number of indices is limited to 2*MAXDIMS currently to allow
mixing integer indices, e.g. with new indices `np.newaxis` (one
removes output dimensions, the other adds new ones).
This means that more than MAXDIMS advanced indices can be passed
on to the advanced indexing machinery (`MapIterNew`), which did
not check for this possibility.
Closes gh-18145
Diffstat (limited to 'numpy/lib/arraypad.py')
0 files changed, 0 insertions, 0 deletions