Exemplo n.º 1
0
 def getattr(self, index):
     method = self.__class__.interface.lookup_method(index)
     if method is not None:
         return BoundMethod(self, index, method)
     else:
         raise space.unwind(space.LAttributeError(self, index))
Exemplo n.º 2
0
 def setattr(self, index, value):
     raise space.unwind(space.LAttributeError(self, index))
Exemplo n.º 3
0
 def getattr(self, index):
     try:
         return BoundMethod(self, index,
                            self.__class__.interface.methods[index])
     except KeyError as e:
         raise space.unwind(space.LAttributeError(self, index))