From: William Stein Date: Fri, 3 Nov 2006 23:34:50 +0000 (-0800) Subject: Made some error output more verbose. X-Git-Tag: 0.9.6.14~29^2~209 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8dc8a614c51307591a38a377c215e5ec66bd1db6;p=cython.git Made some error output more verbose. --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 22f421c3..80ac7abf 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4,7 +4,7 @@ from string import join -from Errors import error, InternalError +from Errors import error, warning, InternalError import Naming from Nodes import Node import PyrexTypes diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ae42f5a6..95f27e86 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2171,7 +2171,7 @@ class DefNode(FuncDefNode): arg_formats.append(format) else: error(arg.pos, - "Cannot convert Python object argument to type '%s'" + "Cannot convert Python object argument to type '%s' (when parsing input arguments)" % arg.type) argformat = '"%s"' % string.join(arg_formats, "") has_starargs = self.star_arg is not None or self.starstar_arg is not None @@ -2247,7 +2247,7 @@ class DefNode(FuncDefNode): "%s = %s;" % (arg.entry.cname, arg.hdr_cname)) else: error(arg.pos, - "Cannot convert argument from '%s' to '%s'" % + "Cannot convert 1 argument from '%s' to '%s'" % (old_type, new_type)) def generate_arg_conversion_from_pyobject(self, arg, code):