[Numpy-discussion] Proposal to accept NEP-18, __array_function__ protocol

Joris Van den Bossche jorisvandenbossche at gmail.com
Wed Sep 26 12:18:05 EDT 2018

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

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).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180926/b6d7cf4f/attachment.html>

More information about the NumPy-Discussion mailing list