1.1 --- a/micropython/ast.py Sun Jun 12 22:14:36 2011 +0200
1.2 +++ b/micropython/ast.py Mon Jun 13 00:18:13 2011 +0200
1.3 @@ -195,7 +195,7 @@
1.4 # Store the object as the result.
1.5
1.6 self.new_op(LoadTemp(0)) # load the context from the locals
1.7 - self.new_op(StoreResult())
1.8 + self.new_op(LoadValueIntoResult())
1.9 self.new_op(Return())
1.10
1.11 self.unit.blocks = self.blocks
1.12 @@ -854,7 +854,7 @@
1.13 else:
1.14 self.dispatch(compiler.ast.Name("None"))
1.15
1.16 - self.new_op(StoreResult())
1.17 + self.new_op(LoadValueIntoResult())
1.18
1.19 if self.in_exception_handler:
1.20 self.new_op(ClearException())