[docs] [issue22046] ZipFile.read() should mention that it might throw NotImplementedError

Jason Heeris report at bugs.python.org
Wed Aug 6 05:41:26 CEST 2014


Jason Heeris added the comment:

Okay, I've attached two files:

1. Scheme.zip, from issue 5701
2. "zftest.py", a script that you run in the same dir as "Scheme.zip" to produce this:

$ python zftest.py 
Extracting: 1!SCHEME.Z64
Traceback (most recent call last):
  File "zftest.py", line 8, in <module>
    child_data = parent.read(zinfo)
  File "/usr/lib/python2.7/zipfile.py", line 931, in read
    return self.open(name, "r", pwd).read()
  File "/usr/lib/python2.7/zipfile.py", line 1006, in open
    close_fileobj=should_close)
  File "/usr/lib/python2.7/zipfile.py", line 530, in __init__
    raise NotImplementedError("compression type %d (%s)" % (self._compress_type, descr))
NotImplementedError: compression type 6 (implode)

----------

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


More information about the docs mailing list