Commit 79d7af03 authored by Mark Florisson's avatar Mark Florisson

Generate assignment arg only once for keyword arguments

parent 5fbfb6f6
...@@ -3833,7 +3833,6 @@ class DefNodeWrapper(FuncDefNode): ...@@ -3833,7 +3833,6 @@ class DefNodeWrapper(FuncDefNode):
for i, arg in enumerate(all_args): for i, arg in enumerate(all_args):
if arg.default and not arg.type.is_pyobject: if arg.default and not arg.type.is_pyobject:
code.putln("if (values[%d]) {" % i) code.putln("if (values[%d]) {" % i)
self.generate_arg_assignment(arg, "values[%d]" % i, code, incref_closure=False)
if arg.default and not arg.type.is_pyobject: if arg.default and not arg.type.is_pyobject:
code.putln('} else {') code.putln('} else {')
code.putln( code.putln(
......
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