Re: [Numpy-discussion] Revised NEP-18, __array_function__ protocol

2018-06-27 Thread Stephan Hoyer
On Tue, Jun 26, 2018 at 11:27 PM Hameer Abbasi wrote: > I would like to propose that we use `__array_function` in the following > manner for functions that create arrays: > >- `array_reference` for indicating the “reference array” whose >`__array_function__` implementation will be called.

Re: [Numpy-discussion] Revised NEP-18, __array_function__ protocol

2018-06-27 Thread Marten van Kerkwijk
Hi Hameer, I'm confused: Isn't your reference array just `self`? All the best, Marten On Wed, Jun 27, 2018 at 2:27 AM, Hameer Abbasi wrote: > > > On 27. Jun 2018 at 07:48, Stephan Hoyer wrote: > > > After much discussion (and the addition of three new co-authors!), I’m > pleased to present a