[Python-Dev] patch: try/finally in generators

Guido van Rossum guido@python.org
Mon, 29 Jul 2002 16:38:12 -0400

> Basically, the GC has to be taught that generators can have finalizers
> and it may not be safe to collect them.  If we allow try/finally in
> generators then they can cause uncollectible garbage.  It's not a show
> stopper but something else to take into consideration.

I leave this in your capable hands.

--Guido van Rossum (home page: http://www.python.org/~guido/)