Hi all,
Without concerns voiced, I will probbaly merge the PR:
https://github.com/numpy/numpy/pull/23240
soon. It proposes to dispatch also on the `where=` argument to ufuncs
for __array_ufunc__. This allows a use-case of an "uncertainty"
boolean array (which is not really boolean).
I guess there may be other use-cases, although I am not sure. It thus
may be a bit narrow in scope.
The main effect of this should be that implementors of __array_ufunc__
may have to add logic to check for `where` in the kwargs (eventually),
otherwise a user passing their array type as `where=` might run into
issues (for some types).
That is slightly tedious, but I doubt it causes much issues in practice
(where isn't used much, and for most types it doesn't matter much
either way, except for rejecting weirder inputs).
Cheers,
Sebastian
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: [email protected]