Node (Python package)

From Colettapedia
Jump to navigation Jump to search

Basic

  • mynode.path = get path to the root node
  • addressing using compound dictionary notation
    • rootnode['child1']['subchild1'].path
  • addressing using as_attribute_access()
    • rootnode.child1.subchild2.path
  • mynode.printtree()
  • del node
  • go right to the root node by .root
  • .allow_non_node_childs = True - then children can be any object