March 2003
Intermediate to advanced
656 pages
39h 30m
English
Pickler
Pickler(fileobj,bin=0)
Creates and returns an object
p such that calling
p
.dump is equivalent to
calling function dump with the
fileobj and bin
argument values passed to Pickler. To serialize
many objects to a file, Pickler is more convenient
and faster than repeated calls to dump. You can
subclass pickle.Pickler to override
Pickler methods (particularly method
persistent_id) and create your own persistence
framework. However, this is an advanced issue, and is not covered
further in this book.