On this page
zipfile.error
Prev: zipfile.BadZipfile | Up: zipfile | Next: zipfile.is_zipfile
Rel: zipfile.BadZipFile, zipfile.BadZipfile, zipfile.is_zipfile, zipfile.LargeZipFile
Ref: docs.python.org โ zipfile.error
Tags: #public #python3 #stdlib #zipfile
Import
import zipfile
from zipfile import error
Signature & Overview
zipfile.error(...)
zipfile.error class.
Methods & Attributes
error.add_note(self, note, /)โ Add a note to the exceptionerror.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import zipfile
assert zipfile.error is zipfile.BadZipFile
Gotchas
- Legacy alias for
zipfile.BadZipFile: Preferzipfile.BadZipFilein new code.
REPL Inspect
from zipfile import error
help(error)
Linked from
- tuts/python3/stdlib_module/zipfile
- tuts/python3/stdlib_module/zipfile/BadZipFile
- tuts/python3/stdlib_module/zipfile/BadZipfile_class
- tuts/python3/stdlib_module/zipfile/is_zipfile
- tuts/python3/stdlib_module/zipfile/LargeZipFile
- tuts/python3/stdlib_module/zipfile/Path
- tuts/python3/stdlib_module/zipfile/PyZipFile
- tuts/python3/stdlib_module/zipfile/ZipFile
- tuts/python3/stdlib_module/zipfile/ZipInfo
Related notes
- tuts/python3/stdlib_module/zipfile/BadZipFile Linked here; links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/BadZipfile_class Linked here; links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/is_zipfile Linked here; links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/LargeZipFile Linked here; links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/ZipFile Linked here; links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/Path links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/PyZipFile links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile/ZipInfo links to this page; shared tags: #stdlib, #zipfile
- tuts/python3/stdlib_module/zipfile links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib