Package elisa :: Package core :: Package utils :: Module threadsafe_list :: Class ThreadsafeList
[hide private]
[frames] | no frames]

Class ThreadsafeList

source code


Thread-safe subclass of the built-in type list.

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__eq__(self, other)
x==y
source code
 
__len__(self)
len(x)
source code
 
__getitem__(self, rank)
x[y]
source code
 
__setitem__(self, rank, value)
x[i]=y
source code
 
__delitem__(self, rank)
del x[y]
source code
 
__iter__(self)
iter(x)
source code
 
__contains__(self, item)
y in x
source code
 
append(self, element)
append object to end
source code
 
count(self, element)
return number of occurrences of value
source code
 
index(self, element)
L.index(value, [start, [stop]]) -> integer -- return first index of value
source code
 
extend(self, elements)
extend list by appending elements from the iterable
source code
 
insert(self, position, element)
insert object before index
source code
 
pop(self, position=-1)
remove and return item at index (default last)
source code
 
remove(self, element)
remove first occurrence of value
source code
 
reverse(self)
reverse *IN PLACE*
source code
 
sort(self, key='frontend')
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
source code
 
__add__(self, operand)
x+y
source code
 
__iadd__(self, operand)
x+=y
source code
 
__mul__(self, coefficient)
x*n
source code
 
__imul__(self, coefficient)
x*=y
source code
 
__getslice__(self, i, j)
x[i:j]
source code
 
__setslice__(self, i, j, sequence)
x[i:j]=y
source code
 
__delslice__(self, i, j)
del x[i:j]
source code
 
__copy__(self) source code
 
__deepcopy__(self, memento) source code

Inherited from list: __ge__, __getattribute__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __repr__, __reversed__, __rmul__

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new list

Overrides: list.__init__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 
x==y
Overrides: list.__eq__
(inherited documentation)

__len__(self)
(Length operator)

source code 
len(x)
Overrides: list.__len__
(inherited documentation)

__getitem__(self, rank)
(Indexing operator)

source code 
x[y]
Overrides: list.__getitem__
(inherited documentation)

__setitem__(self, rank, value)
(Index assignment operator)

source code 
x[i]=y
Overrides: list.__setitem__
(inherited documentation)

__delitem__(self, rank)
(Index deletion operator)

source code 
del x[y]
Overrides: list.__delitem__
(inherited documentation)

__iter__(self)

source code 
iter(x)
Overrides: list.__iter__
(inherited documentation)

__contains__(self, item)
(In operator)

source code 
y in x
Overrides: list.__contains__
(inherited documentation)

append(self, element)

source code 
append object to end
Overrides: list.append
(inherited documentation)

count(self, element)

source code 
return number of occurrences of value
Returns:
integer

Overrides: list.count
(inherited documentation)

index(self, element)

source code 
L.index(value, [start, [stop]]) -> integer -- return first index of value
Overrides: list.index
(inherited documentation)

extend(self, elements)

source code 
extend list by appending elements from the iterable
Overrides: list.extend
(inherited documentation)

insert(self, position, element)

source code 
insert object before index
Overrides: list.insert
(inherited documentation)

pop(self, position=-1)

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

Overrides: list.pop
(inherited documentation)

remove(self, element)

source code 
remove first occurrence of value
Overrides: list.remove
(inherited documentation)

reverse(self)

source code 
reverse *IN PLACE*
Overrides: list.reverse
(inherited documentation)

sort(self, key='frontend')

source code 
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
Overrides: list.sort
(inherited documentation)

__add__(self, operand)
(Addition operator)

source code 
x+y
Overrides: list.__add__
(inherited documentation)

__iadd__(self, operand)

source code 
x+=y
Overrides: list.__iadd__
(inherited documentation)

__mul__(self, coefficient)

source code 
x*n
Overrides: list.__mul__
(inherited documentation)

__imul__(self, coefficient)

source code 
x*=y
Overrides: list.__imul__
(inherited documentation)

__getslice__(self, i, j)
(Slicling operator)

source code 

x[i:j]

Use of negative indices is not supported.
Overrides: list.__getslice__
(inherited documentation)

__setslice__(self, i, j, sequence)
(Slice assignment operator)

source code 

x[i:j]=y

Use of negative indices is not supported.
Overrides: list.__setslice__
(inherited documentation)

__delslice__(self, i, j)
(Slice deletion operator)

source code 

del x[i:j]

Use of negative indices is not supported.
Overrides: list.__delslice__
(inherited documentation)