Difference between 2 styles of closing file in Python
<p>Can somebody please explain the difference between the following?</p>

<pre><code>handler = open(printFile, "w")        
handler.close()
</code></pre>

<p>and</p>

<pre><code>handler = open(printFile, "w")   
close(printFile)
</code></pre>
