[pypy-issue] [issue744] try/finally in not fully consumed generator

Alex Gaynor tracker at bugs.pypy.org
Fri Jun 10 00:05:52 CEST 2011

New submission from Alex Gaynor <alex.gaynor at gmail.com>:

When you write a generator with a try/finally and it will not be fully consumed 
(e.g. https://github.com/mitsuhiko/django-template-
compilation/commit/7900c4d98f2021ec8e15c681a2892f54b347eb38) this is bad on pypy, 
finally is only called on GC.  We need a clear explanation on the website of how 
people should fix this in their code.

messages: 2615
nosy: agaynor, pypy-issue
priority: wish
status: unread
title: try/finally in not fully consumed generator

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list