read large zip file

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


Hello,

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?


		thanks,


			Brian Blais

-- 
Brian Blais
bblais at bryant.edu
http://web.bryant.edu/~bblais



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080406/90740bce/attachment.html>


More information about the Python-list mailing list