Re:Improving your (Python) code with modern idioms
by 0ca0 on Tuesday May 08, 2012 @10:47AM
(#3943857)
The bit on the yield is a little thin. The other day I noticed that generators have a `send` and `throw` method which provide interesting ways for controlling flow.
http://www.python.org/dev/peps/pep-0342/