list() -> new empty list list(iterable) -> new list initialized
from iterable's items
|
|
|
__contains__(x,
y)
y in x |
|
|
|
__delitem__(x,
y)
del x[y] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new empty list
|
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a new object with type S, a subtype of T
|
|
|
|
|
__reversed__(L)
return a reverse iterator over the list |
|
|
|
|
|
__setitem__(x,
i,
y)
x[i]=y |
|
|
|
|
int
|
|
|
append(L,
object)
append object to end |
|
|
integer
|
count(L,
value)
return number of occurrences of value |
|
|
|
extend(L,
iterable)
extend list by appending elements from the iterable |
|
|
|
index(...)
L.index(value, [start, [stop]]) -> integer -- return first index
of value. |
|
|
|
insert(L,
index,
object)
insert object before index |
|
|
item
|
pop(L,
index=...)
remove and return item at index (default last). |
|
|
|
remove(L,
value)
remove first occurrence of value. |
|
|
|
reverse(L)
reverse *IN PLACE* |
|
|
|
sort(L,
cmp=None,
key=None,
reverse=False)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1 |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__ ,
__subclasshook__
|