Tail-recursion with Python generators¶
The title sounds a bit complicated. Stick with it though because it's a really cool concept.
The following article is a bit academic, but the author does a great job of explaining an interesting and useful technique for a problem you'll quickly run into when doing recursion with Python. Bookmark it now before you really need it.