using (was Re: The Python Way)

Aahz aahz at pythoncraft.com
Tue Apr 2 13:17:10 EST 2002


In article <mvkq8.43706$pT1.1223399 at news1.tin.it>,
Alex Martelli  <aleax at aleax.it> wrote:
>
>finally:
>    <guaranteed termination stuff>
>
><code>
>
>has the same semantics as:
>
>try:
>    <code>
>finally:
>    <guaranteed termination stuff>

Good idea.  Now rework it to have a Pythonic connection between your
finally block and the code it applies to.  ;-)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-list mailing list