Commit a1d98255 authored by Stefan Behnel's avatar Stefan Behnel

quick work-arounds for compiler crashes (to be aligned with locals())

parent 7abf66aa
...@@ -5194,6 +5194,7 @@ class PyCFunctionNode(ExprNode, ModuleNameMixin): ...@@ -5194,6 +5194,7 @@ class PyCFunctionNode(ExprNode, ModuleNameMixin):
subexprs = ['code_object'] subexprs = ['code_object']
self_object = None self_object = None
code_object = None
binding = False binding = False
type = py_object_type type = py_object_type
...@@ -5273,7 +5274,8 @@ class CodeObjectNode(ExprNode): ...@@ -5273,7 +5274,8 @@ class CodeObjectNode(ExprNode):
def_node.pos, def_node.pos,
args = [ IdentifierStringNode(arg.pos, unicode_value=arg.name, args = [ IdentifierStringNode(arg.pos, unicode_value=arg.name,
value=StringEncoding.BytesLiteral(arg.name.utf8encode())) value=StringEncoding.BytesLiteral(arg.name.utf8encode()))
for arg in args + local_vars ], for arg in args + local_vars
if arg.name and arg.type.is_pyobject ],
is_temp = 0, is_temp = 0,
is_literal = 1) is_literal = 1)
......
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