Re: [Numpy-discussion] Proposal to accept NEP-18, __array_function__ protocol

2018-08-22 Thread Hameer Abbasi
Hi Nathaniel and Stephan, Since this conversation is getting a bit lengthy and I see a lot of repeated stuff, I’ll summarise the arguments for everyone’s benefit and then present my own viewpoints: Nathaniel: Undue maintenance burden on NumPy, since semantics have to match exactly Implementatio

Re: [Numpy-discussion] Proposal to accept NEP-18, __array_function__ protocol

2018-08-22 Thread Ralf Gommers
On Wed, Aug 22, 2018 at 4:22 AM Hameer Abbasi wrote: > May I propose an alternative that was already discussed, and one that I > think everyone will be okay with: > That's a dangerous assumption on this list:) We put all overridable functions inside a new submodule, numpy.api, that > will initi

Re: [Numpy-discussion] Proposal to accept NEP-18, __array_function__ protocol

2018-08-22 Thread Stephan Hoyer
On Tue, Aug 21, 2018 at 6:47 PM Nathaniel Smith wrote: > On Tue, Aug 21, 2018 at 9:39 AM, Stephan Hoyer wrote: > > It is quite possible that NumPy functions could be (re)written in a way > that > > is incompatible with some unit implementations but is perfectly valid for > > "full" duck arrays.