[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to make sure some operations in ANY situation? (aka: with statement in Python)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 20 Jun 2011 12:08:22 -0300
> > So, to make sure that some operations MUST happen just put them out of
> > the 'if':
> > [...]
> This is neat, simple, and subtly wrong (which is perhaps why other
> languages have unwind-protect et al. in the first place).
Thanks for the corrections.