[Python-Dev] Combining the best of PEP 288 and PEP 325:generator exceptions and cleanup

Raymond Hettinger python at rcn.com
Thu May 19 19:16:36 CEST 2005


> BTW I think that close() and __del__() should raise an exception when
> the throw(GeneratorExit) call doesn't end up either re-raising
> GeneratorExit or raising StopIteration. The framework for calling
> __del__() takes care of handling this exception (by printing and then
> ignoring it). Raymond take notice if you're still working on the PEP.

Got it.


Raymond


More information about the Python-Dev mailing list