SimpleLazyObject
A lazy object initialized from any function. Designed for compound objects of unknown type. For builtins or objects of known type, use django.utils.functional.lazy.
Attributes
| Attribute | Type | Description |
|---|---|---|
| _setupfunc | callable | A callable that returns the object to be wrapped and is used to initialize the lazy object when it is first accessed. |
| _wrapped | The internal storage for the initialized object after the setup function has been executed. |
Constructor
Signature
def SimpleLazyObject(
func: callable
)
Parameters
| Name | Type | Description |
|---|---|---|
| func | callable | A callable that returns the object to be wrapped. |