summaryrefslogtreecommitdiff
path: root/doc/source/reference/arrays.classes.rst
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-04-05 15:57:08 -0400
committerCharles Harris <charlesr.harris@gmail.com>2017-04-27 13:37:50 -0600
commit856da73546da7adf8511a1d2cf83c23db171f26b (patch)
treec98747a5a4bc54dd454f23f31c3d8246e9f6eab9 /doc/source/reference/arrays.classes.rst
parent8cc2f71d3b2a37506918dc9a4f9d078c567ca7be (diff)
downloadnumpy-856da73546da7adf8511a1d2cf83c23db171f26b.tar.gz
DOC: remove left-over piece discussing binops
The text had been changed following the suggestion of @njsmith, but somehow I had forgotten to delete the original.
Diffstat (limited to 'doc/source/reference/arrays.classes.rst')
-rw-r--r--doc/source/reference/arrays.classes.rst11
1 files changed, 0 insertions, 11 deletions
diff --git a/doc/source/reference/arrays.classes.rst b/doc/source/reference/arrays.classes.rst
index 1ece99af6..838b50760 100644
--- a/doc/source/reference/arrays.classes.rst
+++ b/doc/source/reference/arrays.classes.rst
@@ -88,17 +88,6 @@ NumPy provides several hooks that classes can customize:
unless another class also provides a :func:`__array_ufunc__` method
which knows what to do with your class).
- The presence of :func:`__array_ufunc__` also influences how binary
- and comparison operators are dealt with, such as ``__add__``,
- ``__gt__``, etc. If it is not :obj:`None`, the assumption is that
- your code can handle such operations via the ufunc mechanism, and
- hence forward methods on :class:`ndarray` will call the ufuncs
- unconditionally (i.e., even if your class has defined reverse
- methods such as ``__radd__``, ``__le__``, etc.). If
- ``__array_ufunc__ = None``, however, forward methods on
- :class:`ndarray` will unconditionally return :obj:`NotImplemented`,
- so that your reverse methods will get called.
-
The presence of :func:`__array_ufunc__` also influences how
:class:`ndarray` handles binary operations like ``arr + obj`` and ``arr
< obj`` when ``arr`` is an :class:`ndarray` and ``obj`` is an instance