Beispiel #1
0
 def __lt__(self, rhs):
     return ValueBool(self.v < rhs.v)
Beispiel #2
0
 def __le__(self, rhs):
     return ValueBool(self.v <= rhs.v)
Beispiel #3
0
 def __gt__(self, rhs):
     return ValueBool(self.v > rhs.v)
Beispiel #4
0
 def __ge__(self, rhs):
     return ValueBool(self.v >= rhs.v)
Beispiel #5
0
 def __eq__(self, rhs):
     return ValueBool(self.v == rhs.v)
Beispiel #6
0
 def __ne__(self, rhs):
     return ValueBool(self.v != rhs.v)
Beispiel #7
0
 def __lt__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v < v)
Beispiel #8
0
 def __le__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v <= v)
Beispiel #9
0
 def __ge__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v >= v)
Beispiel #10
0
 def __gt__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v > v)
Beispiel #11
0
 def __ne__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v != v)
Beispiel #12
0
 def __eq__(self, rhs):
     v = int(rhs)
     return ValueBool(self.v == v)
Beispiel #13
0
 def get_val(self):
     return ValueBool(bool(self.val))