read large zip file

Brian Blais bblais at
Mon Apr 7 00:20:31 CEST 2008


I need to read a series of large zipfiles (which only contain one  
large text file), and I noticed that the zipfile module:

1) has a read method which isn't an iterator, and returns the entire  
file selected all at once
2) has no readlines method, and no obvious way to implement one

Is there a way to stream an unzip, so it behaves more like a file?


			Brian Blais

Brian Blais
bblais at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list