[Numpy-discussion] Should unique types of all arguments be passed on in __array_function__?

Stephan Hoyer shoyer at gmail.com
Sat Nov 10 17:51:39 EST 2018


On Sat, Nov 10, 2018 at 2:08 PM Hameer Abbasi <einstein.edison at gmail.com>
wrote:

> I agree with Stephan here, other than the fact that ndarray should be in
> the list of types. I can think of many cases in PyData/Sparse where I dont
> want to allow mixed inputs, but maybe that’s a tangential discussion.
>

To be clear: ndarray *is* currently preserved in the list of types passed
to __array_function__ (because ndarray.__array_function__ is defined).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181110/59c6d0a6/attachment.html>


More information about the NumPy-Discussion mailing list