weakref
index
/usr/lib/python2.2/weakref.py

Weak reference support for Python.
 
This module is an implementation of PEP 205:
 
http://python.sourceforge.net/peps/pep-0205.html

 
Classes
            
BaseIter
WeakKeyedItemIterator
WeakKeyedKeyIterator
WeakValuedItemIterator
WeakValuedValueIterator
UserDict.UserDict
WeakKeyDictionary
WeakValueDictionary
 
class BaseIter
       
   Methods defined here:
__iter__(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'weakref'
 
class WeakKeyDictionary(UserDict.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:
__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)
iterkeys(self)
itervalues(self)
keys(self)
popitem(self)
setdefault(self, key, default)
update(self, dict)

Data and non-method functions defined here:
__doc__ = ' Mapping class that references keys weakly.\n\n...cts that override attribute\n accesses.\n '
__module__ = 'weakref'

Methods inherited from UserDict.UserDict:
__cmp__(self, dict)
__contains__(self, key)
__len__(self)
clear(self)
values(self)
 
class WeakKeyedItemIterator(BaseIter)
       
   Methods defined here:
__init__(self, weakdict)
next(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'weakref'

Methods inherited from BaseIter:
__iter__(self)
 
class WeakKeyedKeyIterator(BaseIter)
       
   Methods defined here:
__init__(self, weakdict)
next(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'weakref'

Methods inherited from BaseIter:
__iter__(self)
 
class WeakValueDictionary(UserDict.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:
_WeakValueDictionary__makeremove = __makeremove(self, key)
__getitem__(self, key)
__iter__ = iterkeys(self)
__repr__(self)
__setitem__(self, key, value)
copy(self)
get(self, key, default=None)
items(self)
iteritems(self)
iterkeys(self)
itervalues(self)
popitem(self)
setdefault(self, key, default)
update(self, dict)
values(self)

Data and non-method functions defined here:
__doc__ = 'Mapping class that references values weakly.\n\...n reference to the value exists anymore\n '
__module__ = 'weakref'

Methods inherited from UserDict.UserDict:
__cmp__(self, dict)
__contains__(self, key)
__delitem__(self, key)
__init__(self, dict=None)
__len__(self)
clear(self)
has_key(self, key)
keys(self)
 
class WeakValuedItemIterator(BaseIter)
       
   Methods defined here:
__init__(self, weakdict)
next(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'weakref'

Methods inherited from BaseIter:
__iter__(self)
 
class WeakValuedValueIterator(BaseIter)
       
   Methods defined here:
__init__(self, weakdict)
next(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'weakref'

Methods inherited from BaseIter:
__iter__(self)
 
Functions
            
getweakrefcount(...)
getweakrefcount(object) -- return the number of weak references
to 'object'.
getweakrefs(...)
getweakrefs(object) -- return a list of all weak reference objects
that point to 'object'.
proxy(...)
proxy(object[, callback]) -- create a proxy object that weakly
references 'object'.  'callback', if given, is called with a
reference to the proxy when it is about to be finalized.
ref(...)
new(object[, callback]) -- create a weak reference to 'object';
when 'object' is finalized, 'callback' will be called and passed
a reference to 'object'.
 
Data
             ProxyTypes = (<type 'weakproxy'>, <type 'weakcallableproxy'>)
__all__ = ['ref', 'proxy', 'getweakrefcount', 'getweakrefs', 'WeakKeyDictionary', 'ReferenceType', 'ProxyType', 'CallableProxyType', 'ProxyTypes', 'WeakValueDictionary']
__file__ = '/usr/lib/python2.2/weakref.pyc'
__name__ = 'weakref'