b.r._LazyObjectGetter(_ObjectGetter) : class documentation

Part of bzrlib.registry View In Hierarchy

Known subclasses: bzrlib.branch.MetaDirBranchFormatFactory

Keep a record of a possible object.

When requested, load and return it.

Method __init__ Undocumented
Method get_module Get the module the referenced object will be loaded from.
Method get_obj Get the referenced object.
Method __repr__ Undocumented
def __init__(self, module_name, member_name):
Undocumented
def get_module(self):
Get the module the referenced object will be loaded from.
def get_obj(self):
Get the referenced object.

Upon first request, the object will be imported. Future requests will return the imported object.

def __repr__(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.