From 6a3ca31530b67c91742240c0b8ee59903f4ec49f Mon Sep 17 00:00:00 2001 From: Marten van Kerkwijk Date: Tue, 14 Mar 2017 18:27:33 -0400 Subject: DOC: describe current implementation of __array_ufunc__. --- numpy/doc/subclassing.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/doc') diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py index b6c742a2b..ea6de2ccf 100644 --- a/numpy/doc/subclassing.py +++ b/numpy/doc/subclassing.py @@ -511,6 +511,10 @@ checks based on the input that may be desired before computation begins. Like ``__array_wrap__``, ``__array_prepare__`` must return an ndarray or subclass thereof or raise an error. +.. note:: As of numpy 1.13, there also is a new, more powerful method to + handle how a subclass deals with ufuncs, ``__array_ufunc__``. For details, + see the reference section. + Extra gotchas - custom ``__del__`` methods and ndarray.base ----------------------------------------------------------- -- cgit v1.2.1