t.p.d._ModuleProxy(object) : class documentation

Part of twisted.python.deprecate View Source View In Hierarchy

Python module wrapper to hook module-level attribute access.

Access to deprecated attributes first checks _ModuleProxy._deprecatedAttributes, if the attribute does not appear there then access falls through to _ModuleProxy._module, the wrapped module object.
Instance Variables_moduleModule on which to hook attribute access. (type: module )
_deprecatedAttributesMapping of attribute names to objects that retrieve the module attribute's original value. (type: dict mapping str to _DeprecatedAttribute )
Method __init__ Undocumented
Method __repr__ Get a string containing the type of the module proxy and a representation of the wrapped module object.
Method __setattr__ Set an attribute on the wrapped module object.
Method __getattribute__ Get an attribute on the wrapped module object.
def __init__(self, module): (source)
Undocumented
def __repr__(self): (source)
Get a string containing the type of the module proxy and a representation of the wrapped module object.
def __setattr__(self, name, value): (source)
Set an attribute on the wrapped module object.
def __getattribute__(self, name): (source)

Get an attribute on the wrapped module object.

If the specified name has been deprecated then a warning is issued.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.