8000 DOC: note support for NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0 · numpy/numpy@d4214b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4214b9

Browse files
committed
DOC: note support for NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0
1 parent a8ba10f commit d4214b9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/neps/nep-0018-array-function-protocol.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,15 @@ A prototype implementation can be found in
9898

9999
.. note::
100100

101-
Dispatch with the ``__array_function__`` protocol has been implemented on
102-
NumPy's master branch but is not yet enabled by default. In NumPy 1.16,
103-
you will need to set the environment variable
104-
``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` before importing NumPy to test
105-
NumPy function overrides. We anticipate the protocol will be enabled by
106-
default in NumPy 1.17.
101+
Dispatch with the ``__array_function__`` protocol has been implemented but is
102+
not yet enabled by default:
103+
104+
- In NumPy 1.16, you need to set the environment variable
105+
``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` before importing NumPy to test
106+
NumPy function overrides.
107+
- In NumPy 1.17, the protocol will be enabled by default, but can be disabled
108+
with ``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0``.
109+
- Eventually, expect to ``__array_function__`` to always be enabled.
107110

108111
The interface
109112
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0