Thanks for linking to the updated NEP, I've been looking for a good overview of this discussion. Up until now I haven't wanted to wade through the extensive discussion on this topic.
I'm curious, if I want to simultaneously support older Numpy versions as well as newer versions, will I be able to leave implementations of __array_wrap__ and __array_prepare__ defined alongside __array_ufunc__? Optimally in such a way that older numpy versions use __array_wrap__ and newer versions only use __array_ufunc__. There isn't discussion about this in the NEP, but does this also have impacts on non-ufunc numpy operations like concatenate, dot, norm, hstack, and others? We currently make use of wrappers around those functions in yt but unfortunately they have poor discoverability for users, it would be nice if NumPy could do the right thing with nearest subclasses. On Fri, Mar 31, 2017 at 12:04 PM Marten van Kerkwijk < m.h.vankerkw...@gmail.com> wrote: > Hi All, > > Following Nathaniel's request, I have made a PR that changes the > original NEP to describe the current implementation. > * PR at https://github.com/charris/numpy/pull/9 > * Rendered relevant page at > http://www.astro.utoronto.ca/~mhvk/numpy-doc/neps/ufunc-overrides.html > It may still be somewhat short on detail, but should now give the > rationale for what we want to implement. > > All the best, > > Marten > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion