1.1 --- a/micropython/__init__.py Mon May 09 00:56:35 2011 +0200
1.2 +++ b/micropython/__init__.py Tue May 10 00:48:24 2011 +0200
1.3 @@ -265,7 +265,13 @@
1.4
1.5 t = self.objtable = micropython.table.ObjectTable()
1.6 for module in self.importer.get_modules():
1.7 - t.add(module.full_name(), module.module_attributes())
1.8 +
1.9 + # Add module attributes and module identity information.
1.10 +
1.11 + full_name = module.full_name()
1.12 + attributes = {full_name : module}
1.13 + attributes.update(module.module_attributes())
1.14 + t.add(full_name, attributes)
1.15
1.16 # Add class and instance attributes for all classes, together
1.17 # with descendant information.
1.18 @@ -276,8 +282,8 @@
1.19 # Prevent ambiguous classes.
1.20
1.21 full_name = obj.full_name()
1.22 - name = obj.name
1.23
1.24 + #name = obj.name
1.25 #if module.has_key(name) and module[name].defines_ambiguous_class():
1.26 # raise TableGenerationError, "Class %r in module %r is ambiguously defined." % (name, module.full_name())
1.27