1.1 --- a/micropython/trans.py Mon Feb 06 19:06:46 2012 +0100
1.2 +++ b/micropython/trans.py Sun Feb 26 19:36:56 2012 +0100
1.3 @@ -143,7 +143,7 @@
1.4 if attrname == "__class__":
1.5 if isinstance(target, Class):
1.6 if AddressInstruction is LoadAddress:
1.7 - self.replace_active_value(LoadAddress(self.get_builtin("type")))
1.8 + self.replace_active_value("working", LoadAddress(self.get_builtin("type")))
1.9 return
1.10 else:
1.11 raise TranslateError("Assigning to __class__ is not permitted.")
1.12 @@ -171,7 +171,7 @@
1.13 # information required by the replacement instructions.
1.14
1.15 else:
1.16 - self.replace_active_value(AddressInstruction(attr))
1.17 + self.replace_active_value("working", AddressInstruction(attr))
1.18 else:
1.19 raise TranslateError("Storing of class or module attribute %r via an object is not permitted." % attrname)
1.20