1.1 --- a/micropython/__init__.py Mon Mar 05 00:25:11 2012 +0100
1.2 +++ b/micropython/__init__.py Sun Mar 11 01:49:53 2012 +0100
1.3 @@ -291,7 +291,7 @@
1.4
1.5 if isinstance(obj, Module):
1.6 full_name = obj.full_name()
1.7 - attributes = {full_name : obj}
1.8 + attributes = {"#" + full_name : obj}
1.9 attributes.update(obj.module_attributes())
1.10 t.add(full_name, attributes)
1.11
1.12 @@ -309,7 +309,7 @@
1.13
1.14 # Define a table entry for the class.
1.15
1.16 - attributes = {full_name : obj}
1.17 + attributes = {"#" + full_name : obj}
1.18 attributes.update(obj.all_attributes())
1.19
1.20 # Filter out unused classes.
1.21 @@ -735,7 +735,7 @@
1.22 if isinstance(parent, Instance):
1.23 for attrvalue in attrvalues:
1.24 for name in objtable.any_possible_objects([attrname]):
1.25 - parent = objtable.access(name, name)
1.26 + parent = objtable.access(name, "#" + name)
1.27 if not isinstance(parent, Class) or \
1.28 not parent.instance_attributes().has_key(attrname):
1.29 parent.set(attrname, attrvalue, 0)