Home | History | Annotate | Download | only in test

Lines Matching refs:other

13     def __lt__(self, other):
14 return self.x < other
16 def __le__(self, other):
17 return self.x <= other
19 def __eq__(self, other):
20 return self.x == other
22 def __ne__(self, other):
23 return self.x != other
25 def __gt__(self, other):
26 return self.x > other
28 def __ge__(self, other):
29 return self.x >= other
31 def __cmp__(self, other):
56 def __cmp__(self, other):
62 def __lt__(self, other):
63 return Vector([a < b for a, b in zip(self.data, self.__cast(other))])
65 def __le__(self, other):
66 return Vector([a <= b for a, b in zip(self.data, self.__cast(other))])
68 def __eq__(self, other):
69 return Vector([a == b for a, b in zip(self.data, self.__cast(other))])
71 def __ne__(self, other):
72 return Vector([a != b for a, b in zip(self.data, self.__cast(other))])
74 def __gt__(self, other):
75 return Vector([a > b for a, b in zip(self.data, self.__cast(other))])
77 def __ge__(self, other):
78 return Vector([a >= b for a, b in zip(self.data, self.__cast(other))])
80 def __cast(self, other):
81 if isinstance(other, Vector):
82 other = other.data
83 if len(self.data) != len(other):
85 return other
195 def __lt__(self_, other): return 0
196 def __gt__(self_, other): return 0
197 def __eq__(self_, other): return 0
198 def __le__(self_, other): self.fail("This shouldn't happen")
199 def __ge__(self_, other): self.fail("This shouldn't happen")
200 def __ne__(self_, other): self.fail("This shouldn't happen")
201 def __cmp__(self_, other): raise RuntimeError, "expected"
261 # values don't support anything other than __eq__ and __ne__ (and
307 def __eq__(self, other):
320 def __lt__(self, other):