From 3db4052781ff7941280d5194a9a12fecbf56ddff Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 1 Nov 2008 16:15:31 +0100 Subject: [PATCH] use argument name directly instead of indirect pointer --- Cython/Compiler/Nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2