set_item#
- DictionaryTreeBrowser.set_item(item_path, value)#
iven the path and value, create the missing nodes in the path and assign the given value.
- Parameters:
item_path (str) – A string describing the path with each item separated by a full stop (periods)
value (object) – The value to assign to the given path.
Examples
>>> dict_browser = DictionaryTreeBrowser({}) >>> dict_browser.set_item('First.Second.Third', 3) >>> dict_browser └── First └── Second └── Third = 3