March 2003
Intermediate to advanced
656 pages
39h 30m
English
Unpickler
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.