summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Buitinck <L.J.Buitinck@uva.nl>2011-11-10 14:28:13 +0100
committerCharles Harris <charlesr.harris@gmail.com>2012-01-02 08:42:59 -0700
commitb8179388d3868be2cc26b6ca12e937c7f83a9d5c (patch)
tree9dd31d6c1ac960f5f6fcd7e4710aa61ff285559a
parent3d9bedb70f2fe2761a3ee123004ccbba0f037b2e (diff)
downloadnumpy-b8179388d3868be2cc26b6ca12e937c7f83a9d5c.tar.gz
BUG raise TypeError instead of NotImplementedError for wrong types
-rw-r--r--numpy/core/src/umath/ufunc_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 22b700af8..d87433341 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -4111,7 +4111,7 @@ ufunc_generic_call(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds)
return Py_NotImplemented;
}
else {
- PyErr_SetString(PyExc_NotImplementedError,
+ PyErr_SetString(PyExc_TypeError,
"Not implemented for this type");
return NULL;
}