From: Stefan Behnel Date: Wed, 11 Mar 2009 09:26:38 +0000 (+0100) Subject: better error message X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=355765b3b7f88467dc6647b0f474a6ba772e50f0;p=cython.git better error message --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 14a205b9..ef56b4ed 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1456,7 +1456,8 @@ class CClassScope(ClassScope): if not args: error(pos, "C method has no self argument") elif not args[0].type.same_as(self.parent_type): - error(pos, "Self argument of C method does not match parent type") + error(pos, "Self argument (%s) of C method '%s' does not match parent type (%s)" % + (args[0].type, name, self.parent_type)) entry = self.lookup_here(name) if entry: if not entry.is_cfunction: