From 8dc8a614c51307591a38a377c215e5ec66bd1db6 Mon Sep 17 00:00:00 2001 From: William Stein Date: Fri, 3 Nov 2006 15:34:50 -0800 Subject: [PATCH] Made some error output more verbose. --- Cython/Compiler/ExprNodes.py | 2 +- Cython/Compiler/Nodes.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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): -- 2.26.2