Problem with pickle and restarting a program

peace abhishek1899 at gmail.com
Thu Mar 20 19:28:40 CET 2014


On Thursday, March 20, 2014 1:20:03 AM UTC-7, dieter wrote:
> Peace <> 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").

I tried doing that. I still could not figure out what was wrong. Thank you.



More information about the Python-list mailing list