[Numpy-discussion] Revised NEP-18, array_function protocol (original) (raw)
Stephan Hoyer shoyer at gmail.com
Thu Jun 28 20🔞28 EDT 2018
- Previous message (by thread): [Numpy-discussion] Revised NEP-18, __array_function__ protocol
- Next message (by thread): [Numpy-discussion] Revised NEP-18, __array_function__ protocol
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Jun 28, 2018 at 1:12 PM Marten van Kerkwijk < m.h.vankerkwijk at gmail.com> wrote:
For C classes like the ufuncs, it seems
_self_
is defined for methods as well (at least,np.add.reduce._self_
givesnp.add
), but not a_func_
. There is a_name_
(="reduce"), though, which means that I think one can still retrieve what is needed (obviously, this also means_arrayufunc_
could have been simpler...)
Good point!
I guess this means we should encourage using name rather than func. I would not want to preclude refactoring classes from Python to C/Cython. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180628/34ba362f/attachment.html>
- Previous message (by thread): [Numpy-discussion] Revised NEP-18, __array_function__ protocol
- Next message (by thread): [Numpy-discussion] Revised NEP-18, __array_function__ protocol
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]