summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorJulian Taylor <juliantaylor108@gmail.com>2017-05-10 18:19:52 +0200
committerGitHub <noreply@github.com>2017-05-10 18:19:52 +0200
commit14ff219a13e194c5e7995218fea3c7648eb1c875 (patch)
treebcb6992c727bb477d6f37be40a2b03b77d4b19bc /numpy/core/_internal.py
parent82e923fd8879e557bc0b0c9de63e0500d0b190a0 (diff)
parent8f9eeef2abde02f03249c3ddfcce68bcdf0ee644 (diff)
downloadnumpy-14ff219a13e194c5e7995218fea3c7648eb1c875.tar.gz
Merge pull request #9087 from eric-wieser/fix-ufunc-resolution
BUG: __array_ufunc__ should always be looked up on the type, never the instance
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index f7f579c75..10fcbfdfe 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -688,7 +688,7 @@ class AxisError(ValueError, IndexError):
super(AxisError, self).__init__(msg)
-def array_ufunc_errmsg_formatter(ufunc, method, *inputs, **kwargs):
+def array_ufunc_errmsg_formatter(dummy, ufunc, method, *inputs, **kwargs):
""" Format the error message for when __array_ufunc__ gives up. """
args_string = ', '.join(['{!r}'.format(arg) for arg in inputs] +
['{}={!r}'.format(k, v)