Bases: list
Written by Hugh Bothwell (http://stackoverflow.com/users/33258/hugh-bothwell)
http://stackoverflow.com/questions/5332841/python-list-dict-property-best-practice/5334686#5334686
Modifications by Jeff Terrace
Methods
__init__(items, attrs) | |
append(obj) | |
extend(newList) | |
get(key[, default]) | |
insert(ind, new_obj) | |
pop([ind]) | |
remove(ind_or_obj) |
Attributes
count | L.count(value) -> integer – return number of occurrences of value |
index | L.index(value, [start, [stop]]) -> integer – return first index of value. |
reverse | L.reverse() – reverse IN PLACE |
sort | L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; |
L.count(value) -> integer – return number of occurrences of value
L.index(value, [start, [stop]]) -> integer – return first index of value. Raises ValueError if the value is not present.
L.reverse() – reverse IN PLACE
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1