def ancestors(self, include_singleton=True, include_self=True): assert include_self ary = W_ModuleObject.ancestors( self, include_singleton, not (self.is_singleton and not include_singleton)) if self.superclass is not None: ary += self.superclass.ancestors(include_singleton) return ary
def ancestors(self, include_singleton=True, include_self=True): assert include_self ary = W_ModuleObject.ancestors(self, include_singleton, not (self.is_singleton and not include_singleton) ) if self.superclass is not None: ary += self.superclass.ancestors(include_singleton) return ary