[issue14313] zipfile does not unpack files from archive (files extracted have zero length)

Sergey Dorofeev report at bugs.python.org
Thu Mar 15 05:35:35 CET 2012


New submission from Sergey Dorofeev <fidoman at users.sourceforge.net>:

unzip does extract files but zipfile no
works fine with python2.7 but fails with python 3.2.2
tested on solaris 11 express and windows xp

>>> import zipfile
>>> zipfile.ZipFile("test.zip")
<zipfile.ZipFile object at 0x903e50>
>>> z=_
>>> z.namelist
<bound method ZipFile.namelist of <zipfile.ZipFile object at 0x903e50>>
>>> z.namelist()
['19A7B5A4.PKT']
>>> z.read('19A7B5A4.PKT')
b''

----------
components: Library (Lib)
files: test.zip
messages: 155854
nosy: fidoman
priority: normal
severity: normal
status: open
title: zipfile does not unpack files from archive (files extracted have zero length)
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file24857/test.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14313>
_______________________________________


More information about the Python-bugs-list mailing list