News for hackers. Stuff that matters.
Re:Python 2.x vs. 3.x use survey by agentultra on Wednesday December 10, 2014 @03:20PM (#8731429)
Traversing a binary tree without an explicit stack is also much cleaner thanks to sub-generators.

    if tree.left:
        yield from traverse(tree.left)
    
    yield tree
    
    if tree.right:
        yield from traverse(tree.right)
As a trivial example.

There are no comments on this comment yet.