On this page
tarfile.StreamError
Prev: tarfile.SpecialFileError | Up: tarfile | Next: tarfile.tar_filter
Rel: tarfile.AbsoluteLinkError, tarfile.AbsolutePathError, tarfile.CompressionError, tarfile.data_filter
Ref: docs.python.org โ tarfile.StreamError
Tags: #public #python3 #stdlib #tarfile
Import
import tarfile
from tarfile import StreamError
Signature & Overview
tarfile.StreamError(...)
Exception for unsupported operations on stream-like TarFiles.
Methods & Attributes
StreamError.add_note(self, note, /)โ Add a note to the exceptionStreamError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import tarfile
assert issubclass(tarfile.StreamError, tarfile.TarError)
Gotchas
- Raised on invalid operations in streaming mode (
"r|*"/"w|*"), such as seeking backward.
REPL Inspect
from tarfile import StreamError
help(StreamError)
Linked from
Related notes
- tuts/python3/stdlib_module/tarfile/SpecialFileError Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/tar_filter Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsoluteLinkError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsolutePathError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/CompressionError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/data_filter Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/TarFile Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tarfile/ExtractError shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/FilterError shared tags: #stdlib, #tarfile