1.1 --- a/micropython/inspect.py Mon Sep 05 23:30:02 2011 +0200
1.2 +++ b/micropython/inspect.py Thu Sep 08 00:33:33 2011 +0200
1.3 @@ -482,6 +482,9 @@
1.4 elif isinstance(value, UnresolvedName):
1.5 attr = UnresolvedName(attrname, value.full_name(), self)
1.6
1.7 + # The actual attribute is not readily identifiable and is assumed
1.8 + # to be an instance.
1.9 +
1.10 else:
1.11 attr = make_instance()
1.12
1.13 @@ -489,6 +492,9 @@
1.14
1.15 self._visitAttrUser(expr, attrname, node)
1.16
1.17 + # No particular attribute has been identified, thus a general instance
1.18 + # is assumed.
1.19 +
1.20 else:
1.21 attr = make_instance()
1.22 self.use_name(attrname, node)
1.23 @@ -504,6 +510,8 @@
1.24 where such attributes are inferred from the usage.
1.25 """
1.26
1.27 + # Access to attribute via a local.
1.28 +
1.29 if expr.parent is self.get_namespace():
1.30
1.31 # NOTE: Revisiting of nodes may occur for loops.