title: unzipping large files using python
body: <p>I am attempting to unzip files of various sizes (some are 4GB or above in size) using python, however I have noticed that on several occasions especially when the files are extremely large  the file fails to unzip. When I open the new result file it is empty. Below is the code i am using - is there anything wrong with my approach?</p>
  
  <pre><code>        inF = gzip.open(localFile, 'rb')
          localFile = localFile[:-3]
          outF = open(localFile, 'wb')
          outF.write( inF.read() )
          inF.close()
          outF.close()
  </code></pre>