Commit 3db40527 authored by Stefan Behnel's avatar Stefan Behnel

use argument name directly instead of indirect pointer

parent 57d4d305
...@@ -1946,9 +1946,9 @@ class DefNode(FuncDefNode): ...@@ -1946,9 +1946,9 @@ class DefNode(FuncDefNode):
for i, arg in enumerate(kw_only_args): for i, arg in enumerate(kw_only_args):
if not arg.default: if not arg.default:
# required keyword-only argument missing # required keyword-only argument missing
code.put('__Pyx_RaiseKeywordRequired("%s", *%s[%d]); ' % ( code.put('__Pyx_RaiseKeywordRequired("%s", %s); ' % (
self.name.utf8encode(), Naming.pykwdlist_cname, self.name.utf8encode(),
len(positional_args) + i)) arg.name_entry.pystring_cname))
code.putln(code.error_goto(self.pos)) code.putln(code.error_goto(self.pos))
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment