Re:The Python yield keyword explained
by ntoshev on Sunday August 15, 2010 @07:19AM
(#1604940)
Generators actually allow you to decouple code in more ways than normal functions and classes let you. See the "Why functional programming matters" paper, or the more practical presentation here:
Re:The Python yield keyword explained
by rlander on Sunday August 15, 2010 @02:35PM
(#1605618)
Wow, excellent resource, definitely a must-read. However, I still stand by my opinion that there are more intuitive ways to control flow in python other than generator tricks.
http://www.dabeaz.com/generators/Generators.pdf