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