Пример #1
0
 def __eq__(self, rhs):
     raise UnimplementedFunctionError("Function not yet implemented", rhs)
Пример #2
0
 def cons(self, e):
     raise UnimplementedFunctionError("Function not yet implemented for ", self.__class__.__name__)
Пример #3
0
 def cons(self, e):
     if e.__class__ != self.__class__ and e.__class__ != Symbol.__class__:
         raise UnimplementedFunctionError('Cannot cons a string and a ',
                                          e.__class__.__name__)
     return String(e.data + self.data)
Пример #4
0
 def cdr(self):
     raise UnimplementedFunctionError('Function not yet implemented for ',
                                      self.__class__.__name__)