/ unidist / threadsafelist.py / ThreadSafeList
A thread-safe list. Subclassed from UserList.
Methods
|
|
|
sort
|
sort ( self )
Sort list.
|
|
insert
|
insert (
self,
index,
value,
)
Set an item.
|
|
__delslice__
|
__delslice__ (
self,
start,
stop,
)
Delete a slice of items.
|
|
reverse
|
reverse ( self )
Reverse list.
|
|
__getitem__
|
__getitem__ ( self, key )
Get an item.
|
|
__delitem__
|
__delitem__ ( self, position )
Delete an item.
|
|
__contains__
|
__contains__ ( self, value )
|
|
remove
|
remove ( self, value )
Set an item.
|
|
pop
|
pop ( self )
Pop off an item.
|
|
__setitem__
|
__setitem__ (
self,
key,
value,
)
Set an item.
|
|
__iadd__
|
__iadd__ ( self, value )
In-place addition.
|
|
__init__
|
__init__ ( self, initialdata=None )
|
|
__add__
|
__add__ ( self, value )
In-place addition.
|
|
iteritems
|
iteritems ( self )
|
|
__sizeof__
|
__sizeof__ ( self )
|
|
append
|
append ( self, value )
Set an item.
|
|
count
|
count ( self, value )
Returns count of value in list.
|
|
|