Problem with pickle and restarting a program

dieter dieter at handshake.de
Thu Mar 20 04:20:03 EDT 2014


Peace <abhishek1899 at gmail.com> writes:
> ...
> The serial number field always remains empty even though I enter from the GUI and the receiveSerialNumber function is called and I explicitly initialize it to the variable in the model.
> I'm trying to save the state of the program so that next time I open the application it resumes from where it left off. The problem is when I restart the application, the serial number is empty. What am I doing wrong here? Whenever I get a change in state (the RC value), I pickle and save to a file (restoreinfo.p). When I restart the application, the serial number is no longer there even though I enter it. Could you please let me know what is going wrong? Thank you.

You may want to use debugging to determine what goes on in detail.

There are commercial debuggers with a graphical user interface
(maybe even free ones). Python comes with a simple command line
debugger ("pdb").




More information about the Python-list mailing list