1.1 --- a/micropython/__init__.py Sun Mar 07 02:21:18 2010 +0100
1.2 +++ b/micropython/__init__.py Fri Mar 26 01:17:02 2010 +0100
1.3 @@ -518,7 +518,14 @@
1.4 # combinations of attribute names.
1.5
1.6 for names in self.name_references.get(from_name, []):
1.7 - for objname in objtable.all_possible_objects(names):
1.8 + objnames = objtable.all_possible_objects(names)
1.9 + if not objnames:
1.10 + print "Warning: usage in %r finds no object supporting all attributes %r" % (from_name, names)
1.11 + objnames = objtable.any_possible_objects(names)
1.12 + if not objnames:
1.13 + print "Warning: usage in %r finds no object supporting any attributes %r" % (from_name, names)
1.14 +
1.15 + for objname in objnames:
1.16 for name in names:
1.17 self.use_attribute(objname, name)
1.18 self._collect_attributes(objname + "." + name, objtable)