[Luigi Ballabio] > ... > My question is: how does one go about pulling such stunts with > generators instead? There are many examples in Lib/test/test_generators.py (from the 2.2b1 release, or browse Python CVS on SourceForge).