1.1 --- a/micropython/data.py Fri Jun 12 22:03:56 2009 +0200
1.2 +++ b/micropython/data.py Sun Jun 14 01:18:05 2009 +0200
1.3 @@ -361,6 +361,20 @@
1.4
1.5 return isinstance(self.parent, (Class, Module))
1.6
1.7 + def defines_ambiguous_class(self):
1.8 +
1.9 + "Return whether this attribute defines more than one class."
1.10 +
1.11 + if self.assignments > 1:
1.12 + have_class = 0
1.13 + for obj in self.get_values():
1.14 + if isinstance(obj, Class):
1.15 + if have_class:
1.16 + return 1
1.17 + have_class = 1
1.18 +
1.19 + return 0
1.20 +
1.21 def defined_within_hierarchy(self):
1.22
1.23 """