[Numpy-discussion] __array_ufunc__ counting down to launch, T-24 hrs.
nathan12343 at gmail.com
Fri Mar 31 13:16:49 EDT 2017
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.vankerkwijk at 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
> It may still be somewhat short on detail, but should now give the
> rationale for what we want to implement.
> All the best,
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion