(node)
return s
Returns a tree representation of "node" as a string.

    It uses print_node() together with pprint_nodes() on node.args recursively.

    See also: print_tree()
Returns a tree representation of "node" as a string.
Returns a tree representation of node as a string .
def tree(node):
    """
    Returns a tree representation of "node" as a string.

    It uses print_node() together with pprint_nodes() on node.args recursively.

    See also: print_tree()
    """
    subtrees = []
    for arg in node.args:
        subtrees.append(tree(arg))
    s = print_node(node) + pprint_nodes(subtrees)
    return s
def tree ( node ) : subtrees = [ ] for arg in node . args : subtrees . append ( tree ( arg ) ) s = print_node ( node ) + pprint_nodes ( subtrees ) return s