Commit ab7f482b authored by Stefan Behnel's avatar Stefan Behnel

don't loose outer closure scope while we still need it

parent 82249f21
......@@ -1069,6 +1069,8 @@ class FuncDefNode(StatNode, BlockNode):
outer_scope_cname,
env.scope_class.type.declaration_code(''),
Naming.self_cname))
code.put_incref(outer_scope_cname, py_object_type)
code.put_giveref(outer_scope_cname)
# ----- Fetch arguments
self.generate_argument_parsing_code(env, code)
# If an argument is assigned to in the body, we must
......
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