On this page
pickle.PickleError
Prev: pickle.PickleBuffer | Up: pickle | Next: pickle.Pickler
Rel: pickle.dump, pickle.dumps, pickle.load, pickle.loads
Ref: docs.python.org โ pickle.PickleError
Tags: #public #python3 #stdlib #pickle
Import
import pickle
from pickle import PickleError
Signature & Overview
pickle.PickleError(...)
pickle.PickleError class.
Methods & Attributes
PickleError.add_note(self, note, /)โ Add a note to the exceptionPickleError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import pickle
assert issubclass(pickle.PicklingError, pickle.PickleError)
assert issubclass(pickle.UnpicklingError, pickle.PickleError)
Gotchas
- Base class for
PicklingErrorandUnpicklingError.
REPL Inspect
from pickle import PickleError
help(PickleError)
Linked from
Related notes
- tuts/python3/stdlib_module/pickle/PickleBuffer Linked here; links to this page; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/Pickler Linked here; links to this page; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/pickle/dump Linked here; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/dumps Linked here; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/load Linked here; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/loads Linked here; shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/PicklingError shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/Unpickler shared tags: #pickle, #stdlib
- tuts/python3/stdlib_module/pickle/UnpicklingError shared tags: #pickle, #stdlib