liveBook · Manning

Unpickling

Unpickling is the process of deserializing a pickle byte stream to reconstruct the Python object or object hierarchy it represents.

How 2 Manning books explain it

Python How-To

Unpickling is the process of deserializing a pickle representation to recreate the Python object it contains.

How it is used
Restores preserved Python data from binary pickle files or serialized bytes.
How deep it goes
Explains load usage, binary modes, fidelity checks, custom classes, compatibility limits, and security concerns.
Examples
Uses tuple and dictionary files, a Task instance, a serialized function, and a malicious custom object.
What you can do after
Apply unpickling through pickle.load or pickle.loads and verify restored values against their originals.

Read how Python How-To explains unpickling →

The Quick Python Book, Fourth Edition

Unpickling is the deserialization of a byte stream into a Python object hierarchy.

How it is used
Restores Python program state or cached data from a binary file.
How deep it goes
Defines the inverse of pickling, demonstrates repeated loads, and notes supported and unsupported structures.
Examples
Uses sequentially restored scalar values, dictionary persistence, and a disk-backed calculation cache.
What you can do after
Apply it via pickle.load to restore previously serialized values and reusable application data.

Read how The Quick Python Book, Fourth Edition explains unpickling →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.