1.1 --- a/micropython/ast.py Thu Sep 01 00:35:47 2011 +0200
1.2 +++ b/micropython/ast.py Mon Sep 05 00:16:33 2011 +0200
1.3 @@ -473,7 +473,7 @@
1.4 self.new_op(temp_getitem)
1.5 temp_target, target, temp_context = self._generateCallFunc([compiler.ast.Const(i)], node)
1.6 self._doCallFunc(temp_target, target)
1.7 - self._endCallFunc()
1.8 + self._endCallFunc(temp_context=temp_context)
1.9
1.10 # Provide a different source value.
1.11 # NOTE: Permitting immediate usage given that neither name nor
1.12 @@ -620,12 +620,6 @@
1.13
1.14 self.dispatch(n)
1.15
1.16 - # Discard temporary storage.
1.17 -
1.18 - if self.temp_positions:
1.19 - #print "Had temp", self.temp_positions
1.20 - self.temp_positions = set()
1.21 -
1.22 # Prevent incorrect optimisation by resetting the optimiser after
1.23 # each statement.
1.24