micropython/data.py | raw changeset files shortlog |
1.1 --- a/micropython/data.py Mon Aug 25 02:04:10 2008 +0200 1.2 +++ b/micropython/data.py Wed Aug 27 00:43:33 2008 +0200 1.3 @@ -457,6 +457,12 @@ 1.4 def has_subclass(self, other): 1.5 return other in self.descendants 1.6 1.7 + def all_descendants(self): 1.8 + d = {} 1.9 + for cls in self.descendants: 1.10 + d[cls.full_name()] = cls 1.11 + return d 1.12 + 1.13 "Return the attribute names provided by this class only." 1.14 1.15 class_attribute_names = NamespaceDict.keys