Serhiy Storchaka <storch...@gmail.com> added the comment: > I can sympathize with the desire to accept the zipfile, anyway (i.e. despite > it being broken). At the same time, I also think that Python should not let > errors pass silently.
I do not know other implementation of ZIP, which output an error or a warning on such files. The fact is that such files exist in the wild world. > So as a way out, I propose that the ZipFile class gains a "strict" attribute, > indicating whether "acceptable" violations of the spec are ignored or > reported as exceptions. It is a not easy task (and unnecessary, I suppose). Now zipfile ignores many errors (for example, it completely ignores local file headers). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14315> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com