Home
last modified time | relevance | path

Searched refs:__cast (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/
DUserList.py17 def __lt__(self, other): return self.data < self.__cast(other)
18 def __le__(self, other): return self.data <= self.__cast(other)
19 def __eq__(self, other): return self.data == self.__cast(other)
20 def __ne__(self, other): return self.data != self.__cast(other)
21 def __gt__(self, other): return self.data > self.__cast(other)
22 def __ge__(self, other): return self.data >= self.__cast(other)
23 def __cast(self, other): member in UserList
27 return cmp(self.data, self.__cast(other))
/external/python/cpython2/Lib/test/
Dtest_richcmp.py63 return Vector([a < b for a, b in zip(self.data, self.__cast(other))])
66 return Vector([a <= b for a, b in zip(self.data, self.__cast(other))])
69 return Vector([a == b for a, b in zip(self.data, self.__cast(other))])
72 return Vector([a != b for a, b in zip(self.data, self.__cast(other))])
75 return Vector([a > b for a, b in zip(self.data, self.__cast(other))])
78 return Vector([a >= b for a, b in zip(self.data, self.__cast(other))])
80 def __cast(self, other): member in Vector