projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f11bc1
)
better error message
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 11 Mar 2009 09:26:38 +0000
(10:26 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 11 Mar 2009 09:26:38 +0000
(10:26 +0100)
Cython/Compiler/Symtab.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Symtab.py
b/Cython/Compiler/Symtab.py
index 14a205b948173baa551616c821b83a16df4b5149..ef56b4ed01f5c753e2060e4e0d9853b22268c924 100644
(file)
--- 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: