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

Lines Matching refs:data

7         self.data = []
10 if type(initlist) == type(self.data):
11 self.data[:] = initlist
13 self.data[:] = initlist.data[:]
15 self.data = list(initlist)
16 def __repr__(self): return repr(self.data)
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)
24 if isinstance(other, UserList): return other.data
27 return cmp(self.data, self.__cast(other))
29 def __contains__(self, item): return item in self.data
30 def __len__(self): return len(self.data)
31 def __getitem__(self, i): return self.data[i]
32 def __setitem__(self, i, item): self.data[i] = item
33 def __delitem__(self, i): del self.data[i]
36 return self.__class__(self.data[i:j])
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)
47 del self.data[i:j]
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))
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)
64 self.data += other.data
65 elif isinstance(other, type(self.data)):
66 self.data += other
68 self.data += list(other)
71 return self.__class__(self.data*n)
74 self.data *= n
76 def append(self, item): self.data.append(item)
77 def insert(self, i, item): self.data.insert(i, item)
78 def pop(self, i=-1): return self.data.pop(i)
79 def remove(self, item): self.data.remove(item)
80 def count(self, item): return self.data.count(item)
81 def index(self, item, *args): return self.data.index(item, *args)
82 def reverse(self): self.data.reverse()
83 def sort(self, *args, **kwds): self.data.sort(*args, **kwds)
86 self.data.extend(other.data)
88 self.data.extend(other)