class documentation

class PythonAttribute: (source)

View In Hierarchy

I represent a function, class, or other object that is present.

Instance Variable name the fully qualified python name of the attribute represented by this class.
Instance Variable onObject a reference to a PythonModule or other PythonAttribute that is this attribute's logical parent.
Method __init__ Create a PythonAttribute. This is a private constructor. Do not construct me directly, use PythonModule.iterAttributes.
Instance Variable pythonValue Undocumented
Method __repr__ Undocumented
Method isLoaded Return a boolean describing whether the attribute this describes has actually been loaded into memory by importing its module.
Method load Load the value associated with this attribute.
Method iterAttributes Undocumented
Instance Variable _loaded Undocumented
name = (source)
the fully qualified python name of the attribute represented by this class.
onObject = (source)
a reference to a PythonModule or other PythonAttribute that is this attribute's logical parent.
def __init__(self, name, onObject, loaded, pythonValue): (source)

Create a PythonAttribute. This is a private constructor. Do not construct me directly, use PythonModule.iterAttributes.

Parametersnamethe FQPN
onObjectsee ivar
loadedalways True, for now
pythonValuethe value of the attribute we're pointing to.
_loaded = (source)

Undocumented

pythonValue = (source)

Undocumented

def __repr__(self): (source)

Undocumented

ReturnsUndocumented (type: str)
def isLoaded(self): (source)

Return a boolean describing whether the attribute this describes has actually been loaded into memory by importing its module.

Note: this currently always returns true; there is no Python parser support in this module yet.

def load(self, default=_nothing): (source)

Load the value associated with this attribute.

Returnsan arbitrary Python object, or 'default' if there is an error loading it.
def iterAttributes(self): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.