# HG changeset patch # User Paul Boddie # Date 1315434813 -7200 # Node ID b79edd6601da5ae85085db4ac05ae21071f2fc98 # Parent 3a679e21fb5a713f19b7092abb04a2e1abb37343 Added some comments. diff -r 3a679e21fb5a -r b79edd6601da micropython/inspect.py --- a/micropython/inspect.py Mon Sep 05 23:30:02 2011 +0200 +++ b/micropython/inspect.py Thu Sep 08 00:33:33 2011 +0200 @@ -482,6 +482,9 @@ elif isinstance(value, UnresolvedName): attr = UnresolvedName(attrname, value.full_name(), self) + # The actual attribute is not readily identifiable and is assumed + # to be an instance. + else: attr = make_instance() @@ -489,6 +492,9 @@ self._visitAttrUser(expr, attrname, node) + # No particular attribute has been identified, thus a general instance + # is assumed. + else: attr = make_instance() self.use_name(attrname, node) @@ -504,6 +510,8 @@ where such attributes are inferred from the usage. """ + # Access to attribute via a local. + if expr.parent is self.get_namespace(): # NOTE: Revisiting of nodes may occur for loops.