
Nov. 27, 2014
1:50 p.m.
On Fri, Nov 28, 2014 at 12:17 AM, Antoine Pitrou <solipsis@pitrou.net> wrote:
You could abuse try/finally for this purpose.
Or just use it, since it's a normal use of try/finally ;-)
I guess so. I normally think of try/finally as an implication that an exception is expected (rather than a function-level "atexit" type of thing), but that's what's happening here. So yes, take off the "ab" and just use try/finally. ChrisA