Lines Matching full:other

25   def Equals(self, other) -> bool:  argument
35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator':
36 return Operator('|', self, other)
38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator':
39 return Operator('|', other, self)
41 def __xor__(self, other: Union[int, float, 'Expression']) -> 'Operator':
42 return Operator('^', self, other)
44 def __and__(self, other: Union[int, float, 'Expression']) -> 'Operator':
45 return Operator('&', self, other)
47 def __rand__(self, other: Union[int, float, 'Expression']) -> 'Operator':
48 return Operator('&', other, self)
50 def __lt__(self, other: Union[int, float, 'Expression']) -> 'Operator':
51 return Operator('<', self, other)
53 def __gt__(self, other: Union[int, float, 'Expression']) -> 'Operator':
54 return Operator('>', self, other)
56 def __add__(self, other: Union[int, float, 'Expression']) -> 'Operator':
57 return Operator('+', self, other)
59 def __radd__(self, other: Union[int, float, 'Expression']) -> 'Operator':
60 return Operator('+', other, self)
62 def __sub__(self, other: Union[int, float, 'Expression']) -> 'Operator':
63 return Operator('-', self, other)
65 def __rsub__(self, other: Union[int, float, 'Expression']) -> 'Operator':
66 return Operator('-', other, self)
68 def __mul__(self, other: Union[int, float, 'Expression']) -> 'Operator':
69 return Operator('*', self, other)
71 def __rmul__(self, other: Union[int, float, 'Expression']) -> 'Operator':
72 return Operator('*', other, self)
74 def __truediv__(self, other: Union[int, float, 'Expression']) -> 'Operator':
75 return Operator('/', self, other)
77 def __rtruediv__(self, other: Union[int, float, 'Expression']) -> 'Operator':
78 return Operator('/', other, self)
80 def __mod__(self, other: Union[int, float, 'Expression']) -> 'Operator':
81 return Operator('%', self, other)
122 other: Expression,
125 """If necessary brackets the given other value.
127 If ``other`` is an operator then a bracket is necessary when
137 other (Expression): is a lhs or rhs operator
138 other_str (str): ``other`` in the appropriate string form
139 rhs (bool): is ``other`` on the RHS
144 if isinstance(other, Operator):
146 other.operator, -1):
149 other.operator, -1):
192 def Equals(self, other: Expression) -> bool:
193 if isinstance(other, Operator):
194 return self.operator == other.operator and self.lhs.Equals(
195 other.lhs) and self.rhs.Equals(other.rhs)
240 def Equals(self, other: Expression) -> bool:
241 if isinstance(other, Select):
242 return self.cond.Equals(other.cond) and self.false_val.Equals(
243 other.false_val) and self.true_val.Equals(other.true_val)
288 def Equals(self, other: Expression) -> bool:
289 if isinstance(other, Function):
290 result = self.fn == other.fn and self.lhs.Equals(other.lhs)
292 result = result and self.rhs.Equals(other.rhs)
328 def Equals(self, other: Expression) -> bool:
329 return isinstance(other, Event) and self.name == other.name
355 def Equals(self, other: Expression) -> bool:
356 return isinstance(other, Constant) and self.value == other.value
377 def Equals(self, other: Expression) -> bool:
378 return isinstance(other, Literal) and self.value == other.value
446 def __lt__(self, other): argument
448 return self.name < other.name