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

Class WatchedDict

source code

object --+    
         |    
      dict --+
             |
            WatchedDict

Instance Methods [hide private]
 
__delitem__(self, *args, **kwargs)
del x[y]
source code
new empty dictionary

__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setitem__(self, *args, **kwargs)
x[i]=y
source code
 
notify_changed(self) source code
v, remove specified key and return the corresponding value
pop(self, *args, **kwargs)
If key is not found, d is returned if given, otherwise KeyError is raised
source code
(k, v), remove and return some (key, value) pair as a
popitem(self, *args, **kwargs)
2-tuple; but raise KeyError if D is empty
source code
 
unwatch(self, id) source code
None
update(self, *args, **kwargs)
Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]
source code
 
watch(self, proc) source code

Inherited from dict: __cmp__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, setdefault, values

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__delitem__(self, *args, **kwargs)
(Index deletion operator)

source code 

del x[y]

Overrides: dict.__delitem__
(inherited documentation)

__init__(self)
(Constructor)

source code 

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

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__setitem__(self, *args, **kwargs)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

pop(self, *args, **kwargs)

source code 

If key is not found, d is returned if given, otherwise KeyError is raised

Returns: v, remove specified key and return the corresponding value
Overrides: dict.pop
(inherited documentation)

popitem(self, *args, **kwargs)

source code 

2-tuple; but raise KeyError if D is empty

Returns: (k, v), remove and return some (key, value) pair as a
Overrides: dict.popitem
(inherited documentation)

update(self, *args, **kwargs)

source code 

Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]

Returns: None
Overrides: dict.update
(inherited documentation)