def next(self):

        subterms = args(self.term)
        if not subterms:
            # No subterms, pop off stack
            self.term = self._stack.pop()
        else:
            self.term = subterms[0]
            self._stack.extend(reversed(subterms[1:]))
Proceed to the next term in the preorder traversal.
dataset/ETHPy150Open dask/dask/dask/rewrite.py/Traverser.next