Home | History | Annotate | Download | only in python2.7

Lines Matching refs:other

17     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):
24 if isinstance(other, UserList): return other.data
25 else: return other
26 def __cmp__(self, other):
27 return cmp(self.data, self.__cast(other))
37 def __setslice__(self, i, j, other):
39 if isinstance(other, UserList):
40 self.data[i:j] = other.data
41 elif isinstance(other, type(self.data)):
42 self.data[i:j] = other
44 self.data[i:j] = list(other)
48 def __add__(self, other):
49 if isinstance(other, UserList):
50 return self.__class__(self.data + other.data)
51 elif isinstance(other, type(self.data)):
52 return self.__class__(self.data + other)
54 return self.__class__(self.data + list(other))
55 def __radd__(self, other):
56 if isinstance(other, UserList):
57 return self.__class__(other.data + self.data)
58 elif isinstance(other, type(self.data)):
59 return self.__class__(other + self.data)
61 return self.__class__(list(other) + self.data)
62 def __iadd__(self, other):
63 if isinstance(other, UserList):
64 self.data += other.data
65 elif isinstance(other, type(self.data)):
66 self.data += other
68 self.data += list(other)
84 def extend(self, other):
85 if isinstance(other, UserList):
86 self.data.extend(other.data)
88 self.data.extend(other)