diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-11-12 12:32:46 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-04-27 13:18:41 -0600 |
commit | c7b25e26bb52cc8c75026bf441dcdcd6a2ef6085 (patch) | |
tree | ede77536a76e6ee51cd082c70be3c30eb0f2318f /doc/source/reference/arrays.classes.rst | |
parent | fcd11d2b0e30a3eb1ca8d391ee965431c4a1fdfd (diff) | |
download | numpy-c7b25e26bb52cc8c75026bf441dcdcd6a2ef6085.tar.gz |
ENH: Remove position arg from __array_ufunc__.
Previously when __array_ufunc__ for one of the ufunc arguments was
called, that arguments position was passed in the call. This PR removes
that argument as proposed in gh-5986.
Diffstat (limited to 'doc/source/reference/arrays.classes.rst')
-rw-r--r-- | doc/source/reference/arrays.classes.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/source/reference/arrays.classes.rst b/doc/source/reference/arrays.classes.rst index cfd5f462e..b1fb95d91 100644 --- a/doc/source/reference/arrays.classes.rst +++ b/doc/source/reference/arrays.classes.rst @@ -39,7 +39,7 @@ Special attributes and methods NumPy provides several hooks that classes can customize: -.. method:: class.__array_ufunc__(ufunc, method, i, inputs, **kwargs) +.. method:: class.__array_ufunc__(ufunc, method, inputs, **kwargs) .. versionadded:: 1.11 @@ -51,7 +51,6 @@ NumPy provides several hooks that classes can customize: - *method* is a string indicating which Ufunc method was called (one of ``"__call__"``, ``"reduce"``, ``"reduceat"``, ``"accumulate"``, ``"outer"``, ``"inner"``). - - *i* is the index of *self* in *inputs*. - *inputs* is a tuple of the input arguments to the ``ufunc`` - *kwargs* is a dictionary containing the optional input arguments of the ufunc. The ``out`` argument is always contained in |