class documentation
class PythonAttribute: (source)
Constructor: PythonAttribute(name, onObject, loaded, pythonValue)
I represent a function, class, or other object that is present.
Method | __init__ |
Create a PythonAttribute. This is a private constructor. Do not construct me directly, use PythonModule.iterAttributes. |
Method | __repr__ |
Undocumented |
Method | is |
Return a boolean describing whether the attribute this describes has actually been loaded into memory by importing its module. |
Method | iter |
Undocumented |
Method | load |
Load the value associated with this attribute. |
Instance Variable | name |
the fully qualified python name of the attribute represented by this class. |
Instance Variable | on |
a reference to a PythonModule or other PythonAttribute that is this attribute's logical parent. |
Instance Variable | python |
Undocumented |
Instance Variable | _loaded |
Undocumented |
def __init__(self, name:
str
, onObject: PythonAttribute
, loaded: bool
, pythonValue: object
):
(source)
¶
Create a PythonAttribute. This is a private constructor. Do not construct me directly, use PythonModule.iterAttributes.
Parameters | |
name:str | the FQPN |
onPythonAttribute | see ivar |
loaded:bool | always True, for now |
pythonobject | the value of the attribute we're pointing to. |
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.
Load the value associated with this attribute.
Returns | |
an arbitrary Python object, or 'default' if there is an error loading it. |