Taking Persistent Snapshots of Objects: Pickles

You can use pickles to load and save state of objects from and to I/O streams, hooked up to disk, network, or memory. This program, PickleExample, uses pickles to take snapshot of its internal database into disk, and then load it later.