Package flumotion :: Package common :: Module watched :: Class WatchedList
[hide private]

Class WatchedList

source code

object --+    
         |    
      list --+
             |
            WatchedList

Instance Methods [hide private]
new empty list
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
append(self, o)
append object to end
source code
 
insert(self, idx, o)
insert object before index
source code
 
remove(self, o)
remove first occurrence of value.
source code
item
pop(self, *args)
remove and return item at index (default last).
source code
 
sort(self, *args, **kwargs)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
source code
 
reverse(self)
reverse *IN PLACE*
source code
 
notify_changed(self, obj) source code
 
watch(self, proc) source code
 
unwatch(self, proc_id) source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index

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

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

append(self, o)

source code 

append object to end

Overrides: list.append
(inherited documentation)

insert(self, idx, o)

source code 

insert object before index

Overrides: list.insert
(inherited documentation)

remove(self, o)

source code 

remove first occurrence of value. Raises ValueError if the value is not present.

Overrides: list.remove
(inherited documentation)

pop(self, *args)

source code 

remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.

Returns: item
Overrides: list.pop
(inherited documentation)

sort(self, *args, **kwargs)

source code 

stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1

Overrides: list.sort
(inherited documentation)

reverse(self)

source code 

reverse *IN PLACE*

Overrides: list.reverse
(inherited documentation)