Package SloppyCell :: Module KeyedList_mod :: Class KeyedList
[hide private]

Class KeyedList

source code

object --+    
         |    
      list --+
             |
            KeyedList

Instance Methods [hide private]
new list

__init__(self, arg1=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
copy(self) source code
 
deepcopy(self) source code
 
set_order(self, order) source code
 
setOrder(self, order) source code
 
reverse(self)
reverse *IN PLACE*
source code
 
del_by_key(self, key) source code
 
__delitem__(self, index)
del x[y]
source code
 
__delslice__(self, start, stop)
del x[i:j]
source code
 
__copy__(self) source code
 
__deepcopy__(self, memo) source code
 
set(self, key, value) source code
 
index_by_key(self, key) source code
 
remove_by_key(self, key) source code
 
get(self, key, default=None) source code
 
setByKey(self, key, value) source code
 
getByKey(self, key, default=None) source code
 
indexByKey(self, key) source code
 
removeByKey(self, key) source code
 
keys(self) source code
 
update(self, other) source code
 
has_key(self, key) source code
 
setdefault(self, key, default=None) source code
 
values(self) source code
 
items(self) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
__add__(self, other)
x+y
source code
 
__iadd__(self, other)
x+=y
source code
 
extend(self, other)
extend list by appending elements from the iterable
source code
 
__imul__(self, factor)
x*=y
source code
 
__mul__(self, factor)
x*n
source code
 
__rmul__(self, factor)
n*x
source code
 
append(self, object)
append object to end
source code
 
insert(self, index, object)
insert object before index
source code
 
insert_item(self, index, key, value) source code
item

pop_value(self, index=-1)
remove and return item at index (default last)
source code
item

pop(self, index=-1)
remove and return item at index (default last)
source code
 
pop_key(self, index=-1) source code
 
pop_item(self, index=-1) source code
 
remove_by_value(self, other)
remove first occurrence of value
source code
 
remove(self, other)
remove first occurrence of value
source code
 
sort_by_key(self)
Sort based on key of each entry
source code
 
sort_by_value(self)
Sort based on value of each entry
source code
 
sort(self)
Sort based on value of each entry
source code

Inherited from list: __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __reversed__, __setitem__, __setslice__, count, index

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, arg1=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new list

Overrides: object.__init__
(inherited documentation)

reverse(self)

source code 
reverse *IN PLACE*

Overrides: list.reverse
(inherited documentation)

__delitem__(self, index)
(Index deletion operator)

source code 
del x[y]

Overrides: list.__delitem__
(inherited documentation)

__delslice__(self, start, stop)
(Slice deletion operator)

source code 
del x[i:j]

Use of negative indices is not supported.

Overrides: list.__delslice__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

__add__(self, other)
(Addition operator)

source code 
x+y

Overrides: list.__add__
(inherited documentation)

__iadd__(self, other)

source code 
x+=y

Overrides: list.__iadd__
(inherited documentation)

extend(self, other)

source code 
extend list by appending elements from the iterable

Overrides: list.extend
(inherited documentation)

__imul__(self, factor)

source code 
x*=y

Overrides: list.__imul__
(inherited documentation)

__mul__(self, factor)

source code 
x*n

Overrides: list.__mul__
(inherited documentation)

__rmul__(self, factor)

source code 
n*x

Overrides: list.__rmul__
(inherited documentation)

append(self, object)

source code 
append object to end

Overrides: list.append
(inherited documentation)

insert(self, index, object)

source code 
insert object before index

Overrides: list.insert
(inherited documentation)

pop(self, index=-1)

source code 
remove and return item at index (default last)

Returns:
item

Overrides: list.pop
(inherited documentation)

remove(self, other)

source code 
remove first occurrence of value

Overrides: list.remove
(inherited documentation)

sort(self)

source code 

Sort based on value of each entry

Overrides: list.sort