def walk(node):
    from collections import deque
    todo = deque([node])
    while todo:
        node = todo.popleft()
        todo.extend(iter_child_nodes(node))
        yield node
Recursively yield all descendant nodes in the tree starting at *node*
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/ast.py/walk