add_node#
- DictionaryTreeBrowser.add_node(node_path)#
Adds all the nodes in the given path if they don’t exist.
- Parameters:
node_path (str) – The nodes must be separated by full stops (periods).
Examples
>>> dict_browser = DictionaryTreeBrowser({}) >>> dict_browser.add_node('First.Second') >>> dict_browser.First.Second = 3 >>> dict_browser └── First └── Second = 3