1.1 --- a/micropython/inspect.py Sat Oct 26 22:21:12 2013 +0200
1.2 +++ b/micropython/inspect.py Sat Oct 26 22:23:09 2013 +0200
1.3 @@ -809,6 +809,7 @@
1.4 # Store the function.
1.5
1.6 if name is not None:
1.7 + self.define_attribute_user(compiler.ast.AssName(name, "OP_ASSIGN"))
1.8 self.store(name, function, static_def=True)
1.9 else:
1.10 self.store_lambda(function)
1.11 @@ -1033,7 +1034,7 @@
1.12 # Make an entry for the class in the parent namespace.
1.13
1.14 self.namespaces.pop()
1.15 - self.define_attribute_user(node)
1.16 + self.define_attribute_user(compiler.ast.AssName(node.name, "OP_ASSIGN"))
1.17 self.store(node.name, cls, static_def=True)
1.18 self.add_object(cls)
1.19