1.1 --- a/micropython/inspect.py Sun Nov 04 23:41:06 2012 +0100
1.2 +++ b/micropython/inspect.py Mon Nov 05 00:07:54 2012 +0100
1.3 @@ -693,6 +693,13 @@
1.4
1.5 self._visitAttrUser(expr, attrname, node)
1.6
1.7 + # Constants provide specific kinds of expressions.
1.8 + # NOTE: If attributes are accessed on a pre-made, but not yet defined
1.9 + # NOTE: class, no useful attribute will be available.
1.10 +
1.11 + elif isinstance(expr, Const):
1.12 + attr = get_constant_class(expr.get_class_name()).all_attributes().get(attrname) or make_instance()
1.13 +
1.14 # No particular attribute has been identified, thus a general instance
1.15 # is assumed.
1.16