diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2017-03-14 18:27:33 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-04-27 13:25:49 -0600 |
commit | 6a3ca31530b67c91742240c0b8ee59903f4ec49f (patch) | |
tree | 91aea796c3be78c6436c7e8203efb19ff6d2b927 /numpy/doc | |
parent | 3124e9692aa7cc1aa3baf1f148291bd9ed00d7fd (diff) | |
download | python-numpy-6a3ca31530b67c91742240c0b8ee59903f4ec49f.tar.gz python-numpy-6a3ca31530b67c91742240c0b8ee59903f4ec49f.tar.bz2 python-numpy-6a3ca31530b67c91742240c0b8ee59903f4ec49f.zip |
DOC: describe current implementation of __array_ufunc__.
Diffstat (limited to 'numpy/doc')
-rw-r--r-- | numpy/doc/subclassing.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 ----------------------------------------------------------- |