Message223737
As per issue 5701, the zipfile.ZipFile.read() method will throw a NotImplementedError if the compression scheme is not supported. However, there is no mention of this possibility in the documentation for the read() method. I would suggest, say, "Calling read() on a ZipFile that uses an unsupported compression scheme (eg. implode) will raise a NotImplementedError."
It looks like you can use the testzip() method to check that this won't happen (ie. after you open the file but before you extract an entry). If that is really the expected way to check for this kind of condition, it would be nice to mention that too (under either method). |
|
Date |
User |
Action |
Args |
2014-07-23 12:20:23 | detly | set | recipients:
+ detly, docs@python |
2014-07-23 12:20:23 | detly | set | messageid: <1406118023.79.0.0716895014277.issue22046@psf.upfronthosting.co.za> |
2014-07-23 12:20:23 | detly | link | issue22046 messages |
2014-07-23 12:20:23 | detly | create | |
|