- qspec.add_nested_key ( a , key_list , val )[source]
-
- Parameters:
-
- adict
The target dictionary.
- key_listlist
A list of nested keys of a.
- valarray_like
The value that is assigned to the last key in key_list.
- Returns:
-
- outdict
The dictionary a with val assigned to the last key in key_list.