b.r._ObjectGetter(object) : class documentation

Part of bzrlib.registry View In Hierarchy

Known subclasses: bzrlib.registry._LazyObjectGetter

Maintain a reference to an object, and return the object on request.

This is used by Registry to make plain objects function similarly to lazily imported objects.

Objects can be any sort of python object (class, function, module, instance, etc)

Method __init__ Undocumented
Method get_module Get the module the object was loaded from.
Method get_obj Get the object that was saved at creation time
def __init__(self, obj):
Undocumented
def get_module(self):
Get the module the object was loaded from.
def get_obj(self):
Get the object that was saved at creation time
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.