PEP 342 -- Coroutines via Enhanced Generators | …
The official home of the Python Programming Language. Specification Summary. By adding a few simple methods to the generator-iterator type, and with two minor syntax adjustments, Python developers will be able to use generator functions to implement co-routines and other forms of co-operative multitasking.