diff options
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 10fcbfdfe..9c46b3297 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -695,10 +695,11 @@ def array_ufunc_errmsg_formatter(dummy, ufunc, method, *inputs, **kwargs): for k, v in kwargs.items()]) args = inputs + kwargs.get('out', ()) types_string = ', '.join(repr(type(arg).__name__) for arg in args) - return ('operand type(s) do not implement __array_ufunc__' - '({!r}, {!r}, {}): {}' + return ('operand type(s) all returned NotImplemented from ' + '__array_ufunc__({!r}, {!r}, {}): {}' .format(ufunc, method, args_string, types_string)) + def _ufunc_doc_signature_formatter(ufunc): """ Builds a signature string which resembles PEP 457 |