def add_node tree not or is None and tree add or or in tree and add_no

1
2
3
4
5
6
def add_node(tree, h, *t):
((not t or t[0] is None)
and (tree.add(h) or 1)
or (h in tree
and (add_node(tree[h], *t) or 1)
or add_node(tree.__setitem__(h, {}) or tree[h], *t)))