Lines Matching refs:other
10 # documentation and/or other materials provided with the distribution;
67 def convert(self, other):
68 t = type(other)
78 def __lt__(self, other):
79 return self.convert(other) < other
80 def __le__(self, other):
81 return self.convert(other) <= other
82 def __eq__(self, other):
83 return self.convert(other) == other
84 def __ne__(self, other):
85 return self.convert(other) != other
86 def __gt__(self, other):
87 return self.convert(other) > other
88 def __ge__(self, other):
89 return self.convert(other) >= other
91 def __add__(self, other):
92 return self.convert(other) + other
93 def __sub__(self, other):
94 return self.convert(other) - other
95 def __mul__(self, other):
96 return self.convert(other) * other
97 def __div__(self, other):
98 return self.convert(other) / other
99 def __truediv__(self, other):
100 return self.convert(other) / other
102 def __radd__(self, other):
103 return other + self.convert(other)
104 def __rsub__(self, other):
105 return other - self.convert(other)
106 def __rmul__(self, other):
107 return other * self.convert(other)
108 def __rdiv__(self, other):
109 return other / self.convert(other)
110 def __rtruediv__(self, other):
111 return other / self.convert(other)
125 those strings to other types depending on their usage"""