Destruction of generator objects
Stefan Bellon
sbellon at sbellon.de
Sat Aug 11 06:16:30 EDT 2007
On Sat, 11 Aug, Kay Schluehr wrote:
> On Aug 9, 1:14 am, Stefan Bellon <sbel... at sbellon.de> wrote:
> > Sorry, I forgot to mention that I am forced to using Python 2.4.
> It doesn't matter. You can use try...finally as well in Python 2.4.
> It's just not possible to use except and finally clauses in one
> statement such as:
[snip]
The problem is yield inside try-finally which is not possible in 2.4.
--
Stefan Bellon
More information about the Python-list
mailing list