Lines Matching refs:other

72     def __add__(self, other):
73 """self + other"""
77 def __radd__(self, other):
78 """other + self"""
91 def __sub__(self, other):
92 """self - other"""
93 return self + -other
95 def __rsub__(self, other):
96 """other - self"""
97 return -self + other
100 def __mul__(self, other):
101 """self * other"""
105 def __rmul__(self, other):
106 """other * self"""
110 def __truediv__(self, other):
111 """self / other: Should promote to float when necessary."""
115 def __rtruediv__(self, other):
116 """other / self"""
140 def __eq__(self, other):
141 """self == other"""
197 def __divmod__(self, other):
198 """divmod(self, other): The pair (self // other, self % other).
203 return (self // other, self % other)
205 def __rdivmod__(self, other):
206 """divmod(other, self): The pair (self // other, self % other).
211 return (other // self, other % self)
214 def __floordiv__(self, other):
215 """self // other: The floor() of self/other."""
219 def __rfloordiv__(self, other):
220 """other // self: The floor() of other/self."""
224 def __mod__(self, other):
225 """self % other"""
229 def __rmod__(self, other):
230 """other % self"""
234 def __lt__(self, other):
235 """self < other
241 def __le__(self, other):
242 """self <= other"""
324 def __lshift__(self, other):
325 """self << other"""
329 def __rlshift__(self, other):
330 """other << self"""
334 def __rshift__(self, other):
335 """self >> other"""
339 def __rrshift__(self, other):
340 """other >> self"""
344 def __and__(self, other):
345 """self & other"""
349 def __rand__(self, other):
350 """other & self"""
354 def __xor__(self, other):
355 """self ^ other"""
359 def __rxor__(self, other):
360 """other ^ self"""
364 def __or__(self, other):
365 """self | other"""
369 def __ror__(self, other):
370 """other | self"""