loki.types.module_type
Representation of a module type for module definitions.
Classes
|
Representation of a module definition. |
- class ModuleType(name=None, module=None)
Bases:
DataTypeRepresentation of a module definition.
This serves as a caching mechanism for module definitions in symbol tables.
- Parameters:
name (str, optional) – The name of the module. Can be skipped if
moduleis provided (not in the form of aLazyNodeLookup)module (
ModuleLazyNodeLookup, optional) – The procedure this type represents
- property name
The name of the module
This looks up the name in the linked
moduleif available, otherwise returns the name stored during instantiation of theModuleTypeobject.
- property module
The
Moduleobject represented by this typeIf not provided during instantiation or if the underlying
weakrefis dead, this returnsBasicType.DEFERRED.