Lines Matching refs:other
73 def __add__(self, other):
74 """self + other"""
78 def __radd__(self, other):
79 """other + self"""
92 def __sub__(self, other):
93 """self - other"""
94 return self + -other
96 def __rsub__(self, other):
97 """other - self"""
98 return -self + other
101 def __mul__(self, other):
102 """self * other"""
106 def __rmul__(self, other):
107 """other * self"""
111 def __div__(self, other):
112 """self / other without __future__ division
119 def __rdiv__(self, other):
120 """other / self without __future__ division"""
124 def __truediv__(self, other):
125 """self / other with __future__ division.
132 def __rtruediv__(self, other):
133 """other / self with __future__ division"""
157 def __eq__(self, other):
158 """self == other"""
161 def __ne__(self, other):
162 """self != other"""
164 return not (self == other)
200 def __divmod__(self, other):
201 """divmod(self, other): The pair (self // other, self % other).
206 return (self // other, self % other)
208 def __rdivmod__(self, other):
209 """divmod(other, self): The pair (self // other, self % other).
214 return (other // self, other % self)
217 def __floordiv__(self, other):
218 """self // other: The floor() of self/other."""
222 def __rfloordiv__(self, other):
223 """other // self: The floor() of other/self."""
227 def __mod__(self, other):
228 """self % other"""
232 def __rmod__(self, other):
233 """other % self"""
237 def __lt__(self, other):
238 """self < other
244 def __le__(self, other):
245 """self <= other"""
321 def __lshift__(self, other):
322 """self << other"""
326 def __rlshift__(self, other):
327 """other << self"""
331 def __rshift__(self, other):
332 """self >> other"""
336 def __rrshift__(self, other):
337 """other >> self"""
341 def __and__(self, other):
342 """self & other"""
346 def __rand__(self, other):
347 """other & self"""
351 def __xor__(self, other):
352 """self ^ other"""
356 def __rxor__(self, other):
357 """other ^ self"""
361 def __or__(self, other):
362 """self | other"""
366 def __ror__(self, other):
367 """other | self"""