Trees | Indices | Help |
|
---|
|
UserDict.UserDict --+ | weakref.WeakValueDictionary --+ | WeakValueDictWithCallback
I extend WeakValueDictionary with a configurable callback function.
The callback function must be given *before* any value is assigned, so WeakValueDictWithCallback does not accept a dict nor keyword arguments as __init__ parameters. The callback function will be invoked after a key is removed, with that key as its only argument.
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 8 16:00:04 2009 | http://epydoc.sourceforge.net |