Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68571
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: Problem with pickle and restarting a program |
| Date | 2014-03-20 09:20 +0100 |
| References | <cc656034-01c4-430c-84f0-a181cef6560a@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8292.1395303616.18130.python-list@python.org> (permalink) |
Peace <abhishek1899@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").
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem with pickle and restarting a program Peace <abhishek1899@gmail.com> - 2014-03-19 15:05 -0700
Re: Problem with pickle and restarting a program dieter <dieter@handshake.de> - 2014-03-20 09:20 +0100
Re: Problem with pickle and restarting a program peace <abhishek1899@gmail.com> - 2014-03-20 11:28 -0700
Re: Problem with pickle and restarting a program dieter <dieter@handshake.de> - 2014-03-22 08:20 +0100
csiph-web