On this page
zipfile.BadZipfile
Prev: zipfile.BadZipFile | Up: zipfile | Next: zipfile.error
Rel: zipfile.BadZipFile, zipfile.error, zipfile.is_zipfile, zipfile.LargeZipFile
Ref: docs.python.org โ zipfile.BadZipfile
Tags: #public #python3 #stdlib #zipfile
Import
import zipfile
from zipfile import BadZipfile
Signature & Overview
zipfile.BadZipfile(...)
zipfile.BadZipfile class.
Methods & Attributes
BadZipfile.add_note(self, note, /)โ Add a note to the exceptionBadZipfile.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import zipfile
assert zipfile.BadZipfile is zipfile.BadZipFile
Gotchas
- Legacy lowercase-
falias forBadZipFile: Always usezipfile.BadZipFilein new code.
REPL Inspect
from zipfile import BadZipfile
help(BadZipfile)
Linked from
- tuts/python3/stdlib_module/zipfile
- tuts/python3/stdlib_module/zipfile/BadZipFile
- tuts/python3/stdlib_module/zipfile/error
- 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/error 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