1.1 --- a/micropython/__init__.py Tue Jun 05 01:25:35 2012 +0200
1.2 +++ b/micropython/__init__.py Tue Jun 05 01:29:39 2012 +0200
1.3 @@ -656,7 +656,9 @@
1.4 # Using all attribute names for a particular name, attempt to get
1.5 # specific object types.
1.6
1.7 - all_objtypes = get_object_types_for_usage(usage, objtable, name, from_name)
1.8 + all_objtypes = get_object_types_for_usage(usage, objtable, name, from_name, True)
1.9 + if not all_objtypes:
1.10 + all_objtypes = get_object_types_for_usage(usage, objtable, name, from_name, False)
1.11
1.12 # Where the name through which the attributes are accessed is the
1.13 # special "self" name, restrict the possibilities to types