Name
Unpickler
Synopsis
Unpickler(fileobj
)
Creates and returns an object u
such that
calling u
.load
is
equivalent to calling function load
with the
fileobj
argument value passed to
Unpickler
. To deserialize many objects from a
file, Unpickler
is more convenient and faster than
repeated calls to function load
. You can subclass
pickle.Unpickler
to override
Unpickler
methods (particularly the method
persistent_load
) and create your own persistence
framework. However, this is an advanced issue, and is not covered
further in this book.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.