1.1 --- a/micropython/__init__.py Sat Jul 10 23:23:29 2010 +0200
1.2 +++ b/micropython/__init__.py Sun Jul 11 01:17:11 2010 +0200
1.3 @@ -511,6 +511,13 @@
1.4 self._collect_attributes("__main__", objtable)
1.5
1.6 def add_attribute_to_visit(self, objname, attrname):
1.7 +
1.8 + """
1.9 + Queue an attribute of the object with the given 'objname', having the
1.10 + given 'attrname', to the list for potential visiting if the specified
1.11 + object is actually referenced.
1.12 + """
1.13 +
1.14 if not self.attributes_to_visit.has_key(objname):
1.15 self.attributes_to_visit[objname] = set()
1.16 self.attributes_to_visit[objname].add(attrname)