Bug in module gzip
Konrad Hinsen
hinsen at cnrs-orleans.fr
Tue May 4 06:34:29 EDT 1999
In past Python versions I have had various problems with the gzip
module, but several told me that they were fixed in 1.5.2. So I looked
at it again, only to get an immediate crash when reading a gziped file:
File "/usr/lib/python1.5/gzip.py", line 270, in readline
c = self.read(readsize)
File "/usr/lib/python1.5/gzip.py", line 157, in read
self._read(readsize)
File "/usr/lib/python1.5/gzip.py", line 210, in _read
if self.decompress.unused_data != "":
AttributeError: unused_data
The attribute unused_data is in fact never set. It should thus be
impossible to read any file at all, which makes me wonder if nobody
noticed this before... and perhaps has a fix!
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the Python-list
mailing list