You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TST: __array_ufunc__ cannot be overridden on axis, etc. #9107
While looking at our __array_ufunc__ implementation, I noticed that it looks on all args and any kwargs['out'] entry. This is OK for the regular ufunc.__call__, but for the other methods, it means that if you pass in, e.g., an axis as a positional argument with something that overrides __array_ufunc__, it is counted, and you get your override. This is probably not intended, if only because it means positional and keyword arguments are treated differently...
Unlike the other issues, probably a bit less critical, but still, should be fixed.
changed the title [-]BUG __array_ufunc__ can be overridden on axis, etc.[/-][+]TST: __array_ufunc__ cannot be overridden on axis, etc.[/+]on Mar 23, 2021
Ah, yes, I vaguely seemed to recall there was an issue open for it - and then it turns out to have been mine! I think it is definitely good to have it fixed!
Activity
[-]BUG __array_ufunc__ can be overridden on axis, etc.[/-][+]TST: __array_ufunc__ cannot be overridden on axis, etc.[/+]seberg commentedon Mar 23, 2021
Changing title/tag, since gh-15271 will fix this, but new tests for it might be good.
mhvk commentedon Mar 23, 2021
Ah, yes, I vaguely seemed to recall there was an issue open for it - and then it turns out to have been mine! I think it is definitely good to have it fixed!
mhvk commentedon Jun 26, 2021
fixed by #15271