Пример #1
0
 def __ne__(self, other):
     return Boolean.Boolean(self.value != other.value)
Пример #2
0
 def __eq__(self, other):
     return Boolean.Boolean(self.value == other.value)
Пример #3
0
 def __gt__(self, other):
     return Boolean.Boolean(self.value > other.value)
Пример #4
0
 def __contains__(self, x):
     if type(x) == String:
         return Boolean.Boolean(x.value in self.value)
     else:
         return Boolean.Boolean(x in self.value)
Пример #5
0
 def __le__(self, other):
     return Boolean.Boolean(self.value <= other.value)