|
- Method resolution order:
- WeakKeyDictionary
- WeakKeyDictionary
- UserDict
Methods defined here:
- __delitem__(self, key)
- Overridden delitem to avoid scanning
- __init__(self, dict=None)
- Initialize the WeakKeyDictionary
dict -- previously-existing weak key records or
None to create a new dictionary
Methods inherited from WeakKeyDictionary:
- __contains__(self, key)
- __getitem__(self, key)
- __iter__(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
|