|  |  | 
UserDict
WeakKeyDictionary
WeakValueDictionary
__builtin__.weakref(object)
KeyedRef
 
 
 
| class WeakKeyDictionary(UserDict)
 |  |  | Mapping class that references keys weakly. 
 Entries in the dictionary will be discarded when there is no
 longer a strong reference to the key. This can be used to
 associate additional data with an object owned by other parts of
 an application without adding attributes to those objects. This
 can be especially useful with objects that override attribute
 accesses.
 
 |  |  | Methods defined here: 
 __contains__(self, key)
 __copy__ = copy(self)
 __deepcopy__(self, memo)
 __delitem__(self, key)
 __getitem__(self, key)
 __init__(self, dict=None)
 __iter__ = iterkeys(self)
 __repr__(self)
 __setitem__(self, key, value)
 copy(self)
 get(self, key, default=None)
 has_key(self, key)
 items(self)
 iteritems(self)
 iterkeyrefs(self)Return an iterator that yields the weak references to the keys.
 The references are not guaranteed to be 'live' at the time
 they are used, so the result of calling the references needs
 to be checked before being used.  This can be used to avoid
 creating references that will cause the garbage collector to
 keep the keys around longer than needed.
 iterkeys(self)
 itervalues(self)
 keyrefs(self)Return a list of weak references to the keys.
 The references are not guaranteed to be 'live' at the time
 they are used, so the result of calling the references needs
 to be checked before being used.  This can be used to avoid
 creating references that will cause the garbage collector to
 keep the keys around longer than needed.
 keys(self)
 pop(self, key, *args)
 popitem(self)
 setdefault(self, key, default=None)
 update(self, dict=None, **kwargs)
 Methods inherited from UserDict:
 
 __cmp__(self, dict)
 __len__(self)
 clear(self)
 values(self)
 Class methods inherited from UserDict:
 
 fromkeys(cls, iterable, value=None) from __builtin__.classobj
 Data and other attributes inherited from UserDict:
 
 __hash__ = None
 |  
 
| class WeakValueDictionary(UserDict)
 |  |  | Mapping class that references values weakly. 
 Entries in the dictionary will be discarded when no strong
 reference to the value exists anymore
 
 |  |  | Methods defined here: 
 __contains__(self, key)
 __copy__ = copy(self)
 __deepcopy__(self, memo)
 __delitem__(self, key)
 __getitem__(self, key)
 __init__(self, *args, **kw)
 __iter__ = iterkeys(self)
 __repr__(self)
 __setitem__(self, key, value)
 clear(self)
 copy(self)
 get(self, key, default=None)
 has_key(self, key)
 items(self)
 iteritems(self)
 iterkeys(self)
 itervaluerefs(self)Return an iterator that yields the weak references to the values.
 The references are not guaranteed to be 'live' at the time
 they are used, so the result of calling the references needs
 to be checked before being used.  This can be used to avoid
 creating references that will cause the garbage collector to
 keep the values around longer than needed.
 itervalues(self)
 pop(self, key, *args)
 popitem(self)
 setdefault(self, key, default=None)
 update(self, dict=None, **kwargs)
 valuerefs(self)Return a list of weak references to the values.
 The references are not guaranteed to be 'live' at the time
 they are used, so the result of calling the references needs
 to be checked before being used.  This can be used to avoid
 creating references that will cause the garbage collector to
 keep the values around longer than needed.
 values(self)
 Methods inherited from UserDict:
 
 __cmp__(self, dict)
 __len__(self)
 keys(self)
 Class methods inherited from UserDict:
 
 fromkeys(cls, iterable, value=None) from __builtin__.classobj
 Data and other attributes inherited from UserDict:
 
 __hash__ = None
 |  |