file compression

Peter Maas peter.maas at mplusr.de
Tue Jun 29 17:21:12 CEST 2004


Elaine Jackson schrieb:
> "Peter Maas" <peter.maas at mplusr.de> wrote in message
> news:cbr73f$6s2$1 at swifty.westend.com...
> 
> 
> Hi. Thanks for responding. Your example looks completely reasonable, but when I
> try it I get the following error message:
> 
> TypeError: read() takes exactly 2 arguments (1 given)
> 
> Does this make any sense to you?

Replace

contents = z.read()

by

contents = z.read(nameOfFileInArchive)

An archive is a collection of files.
Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
       eMail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------



More information about the Python-list mailing list