Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
UserList Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def __lt__
 
def __le__
 
def __eq__
 
def __ne__
 
def __gt__
 
def __ge__
 
def __cmp__
 
def __contains__
 
def __len__
 
def __getitem__
 
def __setitem__
 
def __delitem__
 
def __getslice__
 
def __setslice__
 
def __delslice__
 
def __add__
 
def __radd__
 
def __iadd__
 
def __mul__
 
def __imul__
 
def append
 
def insert
 
def pop
 
def remove
 
def count
 
def index
 
def reverse
 
def sort
 
def extend
 

Data Fields

 data
 

Detailed Description

Definition at line 3 of file UserList.py.

Constructor & Destructor Documentation

def __init__ (   self,
  initlist = None 
)

Definition at line 4 of file UserList.py.

4 
5  def __init__(self, initlist=None):
6  self.data = []
7  if initlist is not None:
8  # XXX should this accept an arbitrary sequence?
9  if type(initlist) == type(self.data):
10  self.data[:] = initlist
11  elif isinstance(initlist, UserList):
12  self.data[:] = initlist.data[:]
13  else:
self.data = list(initlist)

Member Function Documentation

def __add__ (   self,
  other 
)

Definition at line 45 of file UserList.py.

References SymbolTable.__class__, UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

45 
46  def __add__(self, other):
47  if isinstance(other, UserList):
48  return self.__class__(self.data + other.data)
49  elif isinstance(other, type(self.data)):
50  return self.__class__(self.data + other)
51  else:
return self.__class__(self.data + list(other))
def __cmp__ (   self,
  other 
)

Definition at line 24 of file UserList.py.

References UserList.__cast(), filecmp.cmp(), UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

24 
25  def __cmp__(self, other):
return cmp(self.data, self.__cast(other))
def __contains__ (   self,
  item 
)

Definition at line 26 of file UserList.py.

26 
def __contains__(self, item): return item in self.data
def __delitem__ (   self,
  i 
)

Definition at line 30 of file UserList.py.

30 
def __delitem__(self, i): del self.data[i]
def __delslice__ (   self,
  i,
  j 
)

Definition at line 42 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, FormContentDict.data, and sre_parse.max.

42 
43  def __delslice__(self, i, j):
44  i = max(i, 0); j = max(j, 0)
del self.data[i:j]
def __eq__ (   self,
  other 
)

Definition at line 17 of file UserList.py.

References UserList.__cast().

17 
def __eq__(self, other): return self.data == self.__cast(other)
def __ge__ (   self,
  other 
)

Definition at line 20 of file UserList.py.

References UserList.__cast().

20 
def __ge__(self, other): return self.data >= self.__cast(other)
def __getitem__ (   self,
  i 
)

Definition at line 28 of file UserList.py.

28 
def __getitem__(self, i): return self.data[i]
def __getslice__ (   self,
  i,
  j 
)

Definition at line 31 of file UserList.py.

References SymbolTable.__class__, UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, FormContentDict.data, and sre_parse.max.

31 
32  def __getslice__(self, i, j):
33  i = max(i, 0); j = max(j, 0)
return self.__class__(self.data[i:j])
def __gt__ (   self,
  other 
)

Definition at line 19 of file UserList.py.

References UserList.__cast().

19 
def __gt__(self, other): return self.data > self.__cast(other)
def __iadd__ (   self,
  other 
)

Definition at line 59 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

59 
60  def __iadd__(self, other):
61  if isinstance(other, UserList):
62  self.data += other.data
63  elif isinstance(other, type(self.data)):
64  self.data += other
65  else:
66  self.data += list(other)
return self
def __imul__ (   self,
  n 
)

Definition at line 70 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

70 
71  def __imul__(self, n):
72  self.data *= n
return self
def __le__ (   self,
  other 
)

Definition at line 16 of file UserList.py.

References UserList.__cast().

16 
def __le__(self, other): return self.data <= self.__cast(other)
def __len__ (   self)

Definition at line 27 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

27 
def __len__(self): return len(self.data)
def __lt__ (   self,
  other 
)

Definition at line 15 of file UserList.py.

References UserList.__cast().

15 
def __lt__(self, other): return self.data < self.__cast(other)
def __mul__ (   self,
  n 
)

Definition at line 67 of file UserList.py.

References SymbolTable.__class__, UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

67 
68  def __mul__(self, n):
return self.__class__(self.data*n)
def __ne__ (   self,
  other 
)

Definition at line 18 of file UserList.py.

References UserList.__cast().

18 
def __ne__(self, other): return self.data != self.__cast(other)
def __radd__ (   self,
  other 
)

Definition at line 52 of file UserList.py.

References SymbolTable.__class__, UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

52 
53  def __radd__(self, other):
54  if isinstance(other, UserList):
55  return self.__class__(other.data + self.data)
56  elif isinstance(other, type(self.data)):
57  return self.__class__(other + self.data)
58  else:
return self.__class__(list(other) + self.data)
def __repr__ (   self)

Definition at line 14 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, and FormContentDict.data.

14 
def __repr__(self): return repr(self.data)
def __setitem__ (   self,
  i,
  item 
)

Definition at line 29 of file UserList.py.

29 
def __setitem__(self, i, item): self.data[i] = item
def __setslice__ (   self,
  i,
  j,
  other 
)

Definition at line 34 of file UserList.py.

References UserDict.data, UserList.data, _localized_month.data, _localized_day.data, SubPattern.data, _Hqxcoderengine.data, _Rlecoderengine.data, Request.data, simple_producer.data, _Environ.data, FormContentDict.data, and sre_parse.max.

34 
35  def __setslice__(self, i, j, other):
36  i = max(i, 0); j = max(j, 0)
37  if isinstance(other, UserList):
38  self.data[i:j] = other.data
39  elif isinstance(other, type(self.data)):
40  self.data[i:j] = other
41  else:
self.data[i:j] = list(other)
def append (   self,
  item 
)

Definition at line 73 of file UserList.py.

73 
def append(self, item): self.data.append(item)
def count (   self,
  item 
)

Definition at line 77 of file UserList.py.

77 
def count(self, item): return self.data.count(item)
def extend (   self,
  other 
)

Definition at line 81 of file UserList.py.

81 
82  def extend(self, other):
83  if isinstance(other, UserList):
84  self.data.extend(other.data)
85  else:
86  self.data.extend(other)
def index (   self,
  item 
)

Definition at line 78 of file UserList.py.

78 
def index(self, item): return self.data.index(item)
def insert (   self,
  i,
  item 
)

Definition at line 74 of file UserList.py.

74 
def insert(self, i, item): self.data.insert(i, item)
def pop (   self,
  i = -1 
)

Definition at line 75 of file UserList.py.

75 
def pop(self, i=-1): return self.data.pop(i)
def remove (   self,
  item 
)

Definition at line 76 of file UserList.py.

76 
def remove(self, item): self.data.remove(item)
def reverse (   self)

Definition at line 79 of file UserList.py.

79 
def reverse(self): self.data.reverse()
def sort (   self,
  args 
)

Definition at line 80 of file UserList.py.

80 
def sort(self, *args): apply(self.data.sort, args)

Field Documentation

data

Definition at line 5 of file UserList.py.


The documentation for this class was generated from the following file: