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.
Method Summary |
|
__init__(self,
dict)
|
|
__contains__(self,
key)
|
|
__delitem__(self,
key)
|
|
__getitem__(self,
key)
|
|
__iter__(self)
|
|
__repr__(self)
|
|
__setitem__(self,
key,
value)
|
|
copy(self)
|
|
get(self,
key,
default)
|
|
has_key(self,
key)
|
|
items(self)
|
|
iteritems(self)
|
|
iterkeys(self)
|
|
itervalues(self)
|
|
keys(self)
|
|
pop(self,
key,
*args)
|
|
popitem(self)
|
|
setdefault(self,
key,
default)
|
|
update(self,
dict,
**kwargs)
|
Inherited from UserDict |
|
__cmp__ (self,
dict)
|
|
__len__ (self)
|
|
clear (self)
|
|
fromkeys (cls,
iterable,
value)
(Class method)
|
|
values (self)
|