<snip>
> Incidentally, once we make reduce/accumuate/... into "associated gufuncs", I
> propose completely removing the "method" argument of __array_ufunc__, since
> it is no longer needed and adds a lot
> of complexity which implementors of an __array_ufunc__ are forced to
> account for.

For Quantity at least I found it somewhat helpful to have the method
separate from the ufunc, as how one deals with it still has
similarities. Though it would probably have been similarly easy if
`__array_ufunc__` had been passed `np.add.reduce` directly. Aside: am
not sure we can so easily remove `method` any more, but I guess we can
at least start getting to a state where it always is `__call__`.

Anyway, this does argue we should be rather careful with signatures..
In particular, for `__array_function__` we really need to think
carefully about `types` - an `__array_function__` specific dict at the
end may be more useful.

All the best,

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

Reply via email to