Python: Generator Cleanup

This code in this post is in Python 3, but aside from “cosmetic” differences,such as next(g) vs g.next() it applies to Python 2 as well. Read more

Similar

I Don’t Like Python

The title is a bit of a lie. I think Python is a good, practical, language, and relatively easy to learn and to teach. Its vast collection of libraries let you slap together a program to do virtually anything you want. It doesn’t have the beauty of APL or... (more…)

Read more »