diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-06-15 08:31:16 -0700 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-06-15 08:31:16 -0700 |
commit | 64afe480a38355b6125de3ce044c14251abe718e (patch) | |
tree | c9d7df83fd3c66207bcc757366a3b370b4fca260 /doc/neps/nep-0018-array-function-protocol.rst | |
parent | 59134057b5b78ca0880c6e5b1c879e17c679d533 (diff) | |
download | numpy-64afe480a38355b6125de3ce044c14251abe718e.tar.gz |
Add warning about rewriting to use a decorator
Diffstat (limited to 'doc/neps/nep-0018-array-function-protocol.rst')
-rw-r--r-- | doc/neps/nep-0018-array-function-protocol.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/neps/nep-0018-array-function-protocol.rst b/doc/neps/nep-0018-array-function-protocol.rst index 04f8b4179..f42da2f88 100644 --- a/doc/neps/nep-0018-array-function-protocol.rst +++ b/doc/neps/nep-0018-array-function-protocol.rst @@ -250,6 +250,11 @@ an ``__array_function__`` method that is identical to Changes within NumPy functions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. warning:: + + This section is outdated. We intend to rewrite it to propose + an explicit `decorator based solution <https://github.com/numpy/numpy/pull/11303#issuecomment-396695348>`_ instead. + Given a function defining the above behavior, for now call it ``try_array_function_override``, we now need to call that function from within every relevant NumPy function. This is a pervasive change, but of |