[issue14315] zipfile.ZipFile() unable to open zip File

Meador Inge report at bugs.python.org
Tue May 15 07:24:05 CEST 2012


Meador Inge <meadori at gmail.com> added the comment:

> I would still like to see the zipfile module to be able to detect 
> ill-formed zipfiles - certainly not by default.

Agreed.  We already do produce some informational messages via the 
documented 'ZipFile.debug' attribute.  Just checking that flag and
producing a message to stdout like we do in other cases is one option.
Another, as you suggested already, is to provide a strict flag
that indicates an exception should be thrown upon encountering an 
ill-formed file.

I like the idea of reusing what we already have.  Although, when it 
fails, it doesn't fail loudly.

----------

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


More information about the Python-bugs-list mailing list