Jack Cushman added the comment: Agreed that no one should be using zip encryption. :) I hit this issue working on an academic exercise. I'm fine with closing this.
(I do think the exception types in zipfile set up a trap for the programmer here: Python throws a different exception type 1/256 of the time for the same error case, which is undocumented and hard to discover by trial and error. It's pretty unlikely that anyone would write a correct `try-except` block for zip decryption on their first few attempts, and someone who needs to catch bad passwords but not bad zip files will most likely ship broken code. But just catching RuntimeError and BadZipfile gets you pretty close, so I don't think it's a big deal.) ---------- status: pending -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29739> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com