Пример #1
0
 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
Пример #2
0
 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