file compression

Elaine Jackson elainejackson7355 at home.com
Tue Jun 29 04:59:53 EDT 2004


"Peter Maas" <peter.maas at mplusr.de> wrote in message
news:cbr73f$6s2$1 at swifty.westend.com...

| z = ZipFile(file, mode="r", compression=ZIP_STORED)
| contents = z.read()
| z.close()
|
| uz = file("unzippedfile", "wb")
| uz.write(contents)
| uz.close()

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?





More information about the Python-list mailing list