diff options
author | Peter Andreas Entschev <peter@entschev.com> | 2020-08-19 09:24:56 -0700 |
---|---|---|
committer | Peter Andreas Entschev <peter@entschev.com> | 2020-08-19 09:24:56 -0700 |
commit | 69e3e7186a39abeead5adf8edba5a24d71e96cb9 (patch) | |
tree | e6beb704bc09ed29d70d03377ac55ce53886b823 /doc/neps | |
parent | 615f19ffe653829ed4709cae65d66c0b7b7c2e2e (diff) | |
download | numpy-69e3e7186a39abeead5adf8edba5a24d71e96cb9.tar.gz |
NEP: Improve NEP-35 abstract per @mattip's suggestion
Diffstat (limited to 'doc/neps')
-rw-r--r-- | doc/neps/nep-0035-array-creation-dispatch-with-array-function.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/neps/nep-0035-array-creation-dispatch-with-array-function.rst b/doc/neps/nep-0035-array-creation-dispatch-with-array-function.rst index d0334967c..7b602c15a 100644 --- a/doc/neps/nep-0035-array-creation-dispatch-with-array-function.rst +++ b/doc/neps/nep-0035-array-creation-dispatch-with-array-function.rst @@ -15,11 +15,10 @@ Abstract -------- We propose the introduction of a new keyword argument ``like=`` to all array -creation functions, this argument permits the creation of an array based on -a non-NumPy reference array passed via that argument, resulting in an array -defined by the downstream library implementing that type, which also implements -the ``__array_function__`` protocol. With this we address one of that -protocol's shortcomings, as described by NEP 18 [1]_. +creation functions to address one of the shortcomings of ``__array_function__``, +as described by NEP 18 [1]_. The ``like=`` keyword argument will create an +instance of the argument's type, enabling direct creation of non-NumPy arrays. +The target array type must implement the ``__array_function__`` protocol. Motivation and Scope -------------------- |