7.2.6.6. get_nested_dicts

get_nested_dicts(nested_dict, *keys, default=None, init_nesting=<class 'dict'>)[source]

Get/Initialize the value of nested-dictionaries.

Parameters:
  • nested_dict (dict) – Nested dictionary.
  • keys (object) – Nested keys.
  • default (callable, optional) – Function used to initialize a new value.
  • init_nesting (callable, optional) – Function used to initialize a new intermediate nesting dict.
Returns:

Value of nested-dictionary.

Return type:

generator