1.1 --- a/common.py Thu Jan 24 19:12:29 2019 +0100
1.2 +++ b/common.py Thu Jan 24 19:16:30 2019 +0100
1.3 @@ -461,8 +461,11 @@
1.4
1.5 for i, node in enumerate(n.nodes):
1.6 statements.append(
1.7 - compiler.ast.Assign([node], compiler.ast.Subscript(
1.8 - compiler.ast.Name(temp), "OP_APPLY", [compiler.ast.Const(i, str(i))]))
1.9 + compiler.ast.Assign([node], compiler.ast.CallFunc(
1.10 + compiler.ast.Getattr(compiler.ast.Name(temp),
1.11 + "__get_single_item_unchecked__",
1.12 + privileged=True),
1.13 + [compiler.ast.Const(i, str(i))]))
1.14 )
1.15
1.16 return self.process_structure_node(compiler.ast.Stmt(statements))
1.17 @@ -1597,6 +1600,10 @@
1.18
1.19 predefined_constants = "False", "None", "NotImplemented", "True"
1.20
1.21 +privileged_attributes = [
1.22 + "__get_single_item_unchecked__",
1.23 + ]
1.24 +
1.25 unary_operator_functions = {
1.26
1.27 # Unary operations.