True, and I should have known better than to not have thoroughly tested code I post to Usenet :). That being said, it was intended as a fast example of how a generator operates for someone coming from Ruby.
-- http://mail.python.org/mailman/listinfo/python-list