reading from a zipped file

Peter Hansen peter at engcorp.com
Thu Jan 16 09:11:06 EST 2003


Lance wrote:
> 
> I have a zip file containing maybe 800 html files. I want to open a single
> file using the webbrowser.open procedure. Is there a Python module that will
> help?

Use the standard zipfile module?  You would probably have to extract the
file, then write it to a temporary file, then pass the name to webbrowser.open.

-Peter




More information about the Python-list mailing list