[Tutor] What is the best way to save and reload?
Bob Gailer
bgailer at alum.rpi.edu
Tue Oct 5 05:50:25 CEST 2004
At 08:08 PM 10/4/2004, mandy b wrote:
>I have a program and I am wondering how I go about saving and reloading it
>so that it remembers what happens each time it is run? I have been
>reading the tutorials, but I do not understand where I am supposed to
>insert this (pickle) into the code I already have. I am not even sure of
>how to pickle the exact info I want to be saved from each run. I am very
>new at this, and any guidance would be helpful.
Take a look at the shelve module.
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625 home
720 938 2625 cell
More information about the Tutor
mailing list