From: Stefan Behnel Date: Sat, 1 Nov 2008 15:15:31 +0000 (+0100) Subject: use argument name directly instead of indirect pointer X-Git-Tag: 0.10~2^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3db4052781ff7941280d5194a9a12fecbf56ddff;p=cython.git use argument name directly instead of indirect pointer --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 9e63d59d..ae348b56 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1946,9 +1946,9 @@ class DefNode(FuncDefNode): for i, arg in enumerate(kw_only_args): if not arg.default: # required keyword-only argument missing - code.put('__Pyx_RaiseKeywordRequired("%s", *%s[%d]); ' % ( - self.name.utf8encode(), Naming.pykwdlist_cname, - len(positional_args) + i)) + code.put('__Pyx_RaiseKeywordRequired("%s", %s); ' % ( + self.name.utf8encode(), + arg.name_entry.pystring_cname)) code.putln(code.error_goto(self.pos)) break