Hi all,

I have small question for clarification regarding some reducing numpy
functions like np.sum, np.mean, etc, i.e. functions that now work on other
array-like objects by checking if they have 'sum', 'mean', etc method and
if so, "dispatch" to the method.
Those functions are several times mentioned as examples in the text of the
NEP, so although the NEP does not list the functions that will use the
__array_function__ protocol explicitly, I assume that those functions will
probably be in that list. But I wanted to check if that assumption is
correct.

Is it the intent that the functions that now dispatch to object methods
will be updated to use the protocol instead? (probably keeping to
method-dispatch as second try for backwards compatibility)

Not something urgent, but I was just wondering that when reading the NEP,
as this is something that would be useful for pandas (where we now need to
do some gymnastics to deal with arguments passed by numpy to those methods
that we don't support).

Joris
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to