[issue10447] zipfile: IOError for long directory paths on Windows

Sridhar Ratnakumar report at bugs.python.org
Wed Nov 17 20:16:51 CET 2010

Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

It appears that there is no base class (zipfile.ZipError) for zipfile errors. Maybe there should be? At the moment, I do:

except zipfile.BadZipFile, zipfile.LargeZipFile:

.. which is of course unreliable. There is no guarantee that a new exception class will not be added to zipfile (thus necessitating me to change my code). Better to have a single base class - zipfile.ZipError similar to TarError http://docs.python.org/library/tarfile.html#tarfile.TarError


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list