On this page
  1. pickle.UnpicklingError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

pickle.UnpicklingError

Prev: pickle.Unpickler | Up: pickle
Rel: pickle.dump, pickle.dumps, pickle.load, pickle.loads
Ref: docs.python.org โ€” pickle.UnpicklingError
Tags: #public #python3 #stdlib #pickle


Import

import pickle
from pickle import UnpicklingError

Signature & Overview

pickle.UnpicklingError(...)

pickle.UnpicklingError class.

Methods & Attributes

Usage

import pickle

try:
    pickle.loads(b"not valid pickle")
except (pickle.UnpicklingError, ValueError, EOFError):
    assert True

Gotchas

REPL Inspect

from pickle import UnpicklingError
help(UnpicklingError)

Linked from

Related notes