class documentation

class twisted.python.deprecate._DeprecatedAttribute: (source)

View In Hierarchy

Wrapper for deprecated attributes.

This is intended to be used by _ModuleProxy. Calling _DeprecatedAttribute.get will issue a warning and retrieve the underlying attribute's value.

Instance Variable module The original module instance containing this attribute
Instance Variable fqpn Fully qualified Python name for the deprecated attribute
Instance Variable version Version that the attribute was deprecated in
Instance Variable message Deprecation message
Method __init__ Initialise a deprecated name wrapper.
Instance Variable __name__ Undocumented
Method get Get the underlying attribute value and issue a deprecation warning.
module = (source)
The original module instance containing this attribute
(type: module)
fqpn = (source)
Fully qualified Python name for the deprecated attribute
(type: str)
version = (source)
Version that the attribute was deprecated in
(type: incremental.Version)
message = (source)
Deprecation message
(type: str)
def __init__(self, module, name, version, message): (source)

Initialise a deprecated name wrapper.

__name__ = (source)

Undocumented

def get(self): (source)

Get the underlying attribute value and issue a deprecation warning.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.