object to make sure we keep update of list in _doc. We just override a
list and maintain change in doc reference (doc[index] obviously).
if init_vals is specified, doc is overwritten with the list given.
Otherwise, the values already in doc are used.
|
new empty list
|
__init__(self,
doc,
item_type=None,
init_vals=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index(self,
x,
*args)
L.index(value, [start, [stop]]) -> integer -- return first index
of value. |
source code
|
|
|
|
|
|
item
|
pop(self,
i=-1)
remove and return item at index (default last). |
source code
|
|
|
|
|
|
|
sort(self,
cmp=None,
key=None,
reverse=False)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1 |
source code
|
|
|
|
|
|
Inherited from list:
__add__,
__eq__,
__ge__,
__getattribute__,
__getitem__,
__gt__,
__iadd__,
__imul__,
__iter__,
__le__,
__len__,
__lt__,
__mul__,
__ne__,
__new__,
__repr__,
__reversed__,
__rmul__,
__sizeof__,
count
Inherited from object:
__delattr__,
__format__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__,
__subclasshook__
|