Hi Pierre,
Thanks for pinging me. To put it in the simplest way possible, that PR
adds a new `like` kwarg that will dispatch to downstream libraries
using `__array_function__` when specified, otherwise fallback to the
default behavior of NumPy. While that introduces an extra check on the
C side, t
ion__
===
:Author: Peter Andreas Entschev
:Status: Draft
:Type: Standards Track
:Created: 2019-10-15
:Updated: 2020-08-17
:Resolution:
Abstract
We propose the introduction of a new keyword argument ``like=`` to all array
creation functions, this argument permit
NEP 35
>> simply follows the pattern set by previous PRs, and given its tight scope
>> is less difficult to understand than other NEPs on such technical topics.
>> Peter has done a lot of things right, and is close to the finish line.
>>
>>
>> On Thu, Aug 13, 202
Hi all,
During the discussion about NEP-35, there have been lots of
discussions around the NEP process itself. In the interest of allowing
people who are mostly interested in this discussion and to avoid
drifting so much off-topic in that thread, I'm starting this new
thread to discuss the NEP pro
discussion of the
NEP process in a different thread if people wish to do so.
Best,
Peter
On Thu, Aug 13, 2020 at 4:13 PM Ralf Gommers wrote:
>
>
>
> On Thu, Aug 13, 2020 at 2:47 PM Peter Andreas Entschev
> wrote:
>>
>> > We adapted the NEP template [6] several tim
this clarifies a few things that I failed to convey in my
> previous mail.
> ilhan
>
>
>
> On Thu, Aug 13, 2020 at 2:23 PM Ralf Gommers wrote:
>>
>> Thanks for raising these concerns Ilhan and Juan, and for answering Peter.
>> Let me give my perspective as we
> Let me give my perspective as well.
>
> To start with, this is not specifically about Peter's NEP and PR. NEP 35
> simply follows the pattern set by previous PRs, and given its tight scope is
> less difficult to understand than other NEPs on such technical topics. Peter
&
> I am not sure adding a new keyword to an already confusing function is the
> right thing to do.
Could you clarify what is the confusing function in question?
> This is already a very (I mean extremely very) easy keyword name to confuse
> with ones_like, zeros_like and by its nature any other
Hello everyone,
I've put together a new proposal for array creation dispatching with
the __array_function__ protocol [1], based on a discussion that
occurred some time ago in [2].
It would be great if people could take the time to review and comment on that.
[1] https://github.com/numpy/numpy/pu
I see what you mean now. It was my misunderstanding, I thought you
wanted to return a call to __array__ when you call np.duckarray.
I agree with your point and understand how the current text may be
misleading, so we shall make it clearer in the NEP (as done in
https://github.com/numpy/numpy/pull/
array (e.g., the original array passed to the
duckarray function) or an exception (instead of coercing to a NumPy
array)?
On Mon, Sep 16, 2019 at 9:25 PM Chris Barker wrote:
>
>
>
> On Mon, Aug 12, 2019 at 4:02 AM Peter Andreas Entschev
> wrote:
>>
>> Apologies for t
>
> My preference, would be to use "numpy", and where practicable, use a
> "computer" font -- i.e. ``numpy`` in RST.
>
> But if there is consensus already for anything else, that's fine, I'd just
> like to know what it is.
>
> -CHB
>
>
>
Apologies for the late reply. I've opened a new PR
https://github.com/numpy/numpy/pull/14257 with the changes requested
on clarifying the text. After reading the detailed description, I've
decided to add a subsection "Scope" to clarify the scope where NEP-30
would be useful. I think the inclusion o
e can then sync both NEPs.
On Tue, Aug 6, 2019 at 4:23 PM Sebastian Berg
wrote:
>
> On Tue, 2019-08-06 at 10:24 +0200, Peter Andreas Entschev wrote:
> > Thanks for the concerns raised, and Stephan for promptly answering
> > them.
> >
> > > An alternative to
Thanks for the concerns raised, and Stephan for promptly answering them.
> An alternative to introducing np.duckarray() would be to just modify
> np.asarray(). Of course this has backwards compatibility impact, but if
> you're going to be raising a TypeError from __array__ then that impact is
>
Hi,
we have a new proposal for the implementation of NumPy array duck
typing [1] [2], following the high-level overview described in NEP-22
[3].
Would be great to get some comments on that.
[1]
https://github.com/numpy/numpy/blob/master/doc/neps/nep-0030-duck-array-protocol.rst
[2] https://gith
16 matches
Mail list logo