Popular recipes by Volker S. http://code.activestate.com/recipes/users/4171469/2009-08-17T10:24:40-07:00ActiveState Code RecipesReading large files from zip archive (Python)
2009-08-17T10:24:40-07:00Volker S.http://code.activestate.com/recipes/users/4171469/http://code.activestate.com/recipes/576882-reading-large-files-from-zip-archive/
<p style="color: grey">
Python
recipe 576882
by <a href="/recipes/users/4171469/">Volker S.</a>
(<a href="/recipes/tags/large_files/">large_files</a>, <a href="/recipes/tags/memory/">memory</a>, <a href="/recipes/tags/zip/">zip</a>).
Revision 3.
</p>
<p>The standard zipfile module provides only a method to extract the entire content of a file from within a zip-file.
This extension adds a generator method to iterate over the lines in a file, avoiding the memory problems.</p>