[pypy-commit] pypy fix-result-types: improve compatibility of error messages
rlamy
noreply at buildbot.pypy.org
Fri May 22 05:01:44 CEST 2015
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: fix-result-types
Changeset: r77472:ef9e5df0e5f3
Date: 2015-05-22 04:02 +0100
http://bitbucket.org/pypy/pypy/changeset/ef9e5df0e5f3/
Log: improve compatibility of error messages
diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py
--- a/pypy/module/micronumpy/ufuncs.py
+++ b/pypy/module/micronumpy/ufuncs.py
@@ -510,8 +510,7 @@
else:
raise oefmt(space.w_TypeError,
- "No loop matching the specified signature was found "
- "for ufunc %s", self.name)
+ "ufunc '%s' not supported for the input types", self.name)
def allowed_types(self, space):
dtypes = []
@@ -716,8 +715,7 @@
else:
raise oefmt(space.w_TypeError,
- "No loop matching the specified signature was found "
- "for ufunc %s", self.name)
+ "ufunc '%s' not supported for the input types", self.name)
def allowed_types(self, space):
dtypes = []
More information about the pypy-commit
mailing list