Skip to content

Commit

Permalink
Merge pull request numpy#12148 from shoyer/nep18-release-notes
Browse files Browse the repository at this point in the history
DOC: document NEP-18 overrides in release notes
  • Loading branch information
mattip authored Oct 13, 2018
2 parents 18c1210 + f7ae1c1 commit 2c4c93a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/release/1.16.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,14 @@ c-extension module.
`numpy.ndarray.getfield` now checks the dtype and offset arguments to prevent
accessing invalid memory locations.

NumPy functions now support overrides with ``__array_function__``
-----------------------------------------------------------------
It is now possible to override the implementation of almost all NumPy functions
on non-NumPy arrays by defining a ``__array_function__`` method, as described
in `NEP 18`_. The sole exception are functions for explicitly casting to NumPy
arrays such as ``np.array``. As noted in the NEP, this feature remains
experimental and the details of how to implement such overrides may change in
the future.

.. _`NEP 15` : http://www.numpy.org/neps/nep-0015-merge-multiarray-umath.html
.. _`NEP 18` : http://www.numpy.org/neps/nep-0018-array-function-protocol.html

0 comments on commit 2c4c93a

Please sign in to comment.