aahz at pythoncraft.com (Aahz) writes: > What's wrong with > > def foo(): > if False: yield None Does the following work? def foo(): raise StopIteration