reading from an a gzip file

Nader n.emami at
Wed Jun 18 10:56:59 CEST 2008


I have a gzip file and I try to read from this file withe the next

 gunziped_file = gzip.GzipFile('gzip-file')
 input_file = open(gunziped_file,'r')

But I get the nezt error message:

Traceback (most recent call last):
  File "", line 131, in ?
    input_file = open(gunziped_file,'r')
TypeError: coercing to Unicode: need string or buffer, instance found

I think that I do some mistake. Would some body tell me what is my


More information about the Python-list mailing list