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

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

 
Classes
            
exceptions.RuntimeError(exceptions.StandardError)
ReferenceError
UserDict.UserDict
WeakKeyDictionary
WeakValueDictionary

 
class ReferenceError(exceptions.RuntimeError)
       
  
__getitem__(...) from exceptions.Exception
__init__(...) from exceptions.Exception
__str__(...) from exceptions.Exception

 
class WeakKeyDictionary(UserDict.UserDict)
       
  
__cmp__(self, dict) from UserDict.UserDict
__delitem__(self, key) from UserDict.UserDict
__getitem__(self, key)
__init__(self, dict=None)
__len__(self) from UserDict.UserDict
__repr__(self)
__setitem__(self, key, value)
clear(self) from UserDict.UserDict
copy(self)
get(self, key, default=None)
has_key(self, key)
items(self)
keys(self)
popitem(self)
setdefault(self, key, default)
update(self, dict)
values(self) from UserDict.UserDict

 
class WeakValueDictionary(UserDict.UserDict)
       
  
__cmp__(self, dict) from UserDict.UserDict
__delitem__(self, key) from UserDict.UserDict
__getitem__(self, key)
__init__(self, dict=None) from UserDict.UserDict
__len__(self) from UserDict.UserDict
__repr__(self)
__setitem__(self, key, value)
clear(self) from UserDict.UserDict
copy(self)
get(self, key, default=None)
has_key(self, key) from UserDict.UserDict
items(self)
keys(self) from UserDict.UserDict
popitem(self)
setdefault(self, key, default)
update(self, dict)
values(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
             CallableProxyType = <type 'weakcallableproxy'>
ProxyType = <type 'weakproxy'>
ProxyTypes = (<type 'weakproxy'>, <type 'weakcallableproxy'>)
ReferenceType = <type 'weakref'>
__all__ = ['ref', 'proxy', 'getweakrefcount', 'getweakrefs', 'WeakKeyDictionary', 'ReferenceType', 'ProxyType', 'CallableProxyType', 'ProxyTypes', 'WeakValueDictionary']
__file__ = '/usr/lib/python2.1/weakref.pyc'
__name__ = 'weakref'