def iterate(obj, opts):
    stack = deque([obj])
    while stack:
        t = stack.popleft()
        yield t
        for c in t.get_children(**opts):
            stack.append(c)
See GridSearch.init()
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py/iterate--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/gridsearch.py/GridSearchDOE.__init__