Skip to main content

DeferredSubDict

Wrap a dict, allowing deferred access to a sub-dict under a given key.

Attributes

AttributeTypeDescription
parent_dictdictThe dictionary being wrapped that contains the sub-dictionary to be accessed lazily.
deferred_keyhashableThe key within parent_dict that points to the sub-dictionary used for item lookups.

Constructor

Signature

def DeferredSubDict(
parent_dict: dict,
deferred_key: any
) - > null

Parameters

NameTypeDescription
parent_dictdictThe dictionary containing the sub-dictionary.
deferred_keyanyThe key in the parent dictionary that points to the sub-dictionary.

Signature

def DeferredSubDict(
parent_dict: dict,
deferred_key: any
)

Parameters

NameTypeDescription
parent_dictdictThe source dictionary containing the nested data structure
deferred_keyanyThe key in the parent dictionary that points to the sub-dictionary to be accessed lazily