Comment

denis

> try: ...20 lines... finally: ...now it's over..

In python you have with statement, which is clearly better: defer will only work after function return, while using with you can be sure actions are done after leaving with block.