diff options
author | Lars Buitinck <L.J.Buitinck@uva.nl> | 2011-11-10 14:28:13 +0100 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-01-02 08:42:59 -0700 |
commit | b8179388d3868be2cc26b6ca12e937c7f83a9d5c (patch) | |
tree | 9dd31d6c1ac960f5f6fcd7e4710aa61ff285559a | |
parent | 3d9bedb70f2fe2761a3ee123004ccbba0f037b2e (diff) | |
download | numpy-b8179388d3868be2cc26b6ca12e937c7f83a9d5c.tar.gz |
BUG raise TypeError instead of NotImplementedError for wrong types
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 2 |
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; } |