Does python have automatic resource management?
<p>All versions of Java require the user to close resources manually - usually handled in the finally block. Java 7 is about to get <a href="http://www.infoq.com/news/2010/08/arm-blocks" rel="nofollow">ARM</a> (automatic resource management) blocks. </p>

<ol>
<li>Firstly I don't see a finally block concept in python. Or do you close resources in the catch for each raised exceptions ?</li>
<li>Is there a library that performs ARM in python ? If not, then what is the pythonic way to do ARM ?</li>
</ol>
