Пример #1
0
 def methods(self, space, inherit=True):
     methods = {}
     for name in W_ModuleObject.methods(self, space, inherit):
         methods[name] = None
     if inherit and self.superclass is not None:
         for name in self.superclass.methods(space, inherit):
             method = self._find_method_pure(space, name, self.version)
             if method is None or not isinstance(method, UndefMethod):
                 methods[name] = None
     return methods.keys()
Пример #2
0
 def methods(self, space, inherit=True):
     methods = {}
     for name in W_ModuleObject.methods(self, space, inherit):
         methods[name] = None
     if inherit and self.superclass is not None:
         for name in self.superclass.methods(space, inherit):
             method = self._find_method_pure(space, name, self.version)
             if method is None or not isinstance(method, UndefMethod):
                 methods[name] = None
     return methods.keys()