Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68753

Re: Problem with pickle and restarting a program

From dieter <dieter@handshake.de>
Subject Re: Problem with pickle and restarting a program
Date 2014-03-22 08:20 +0100
References <cc656034-01c4-430c-84f0-a181cef6560a@googlegroups.com> <mailman.8292.1395303616.18130.python-list@python.org> <11a691c7-2842-4d3a-b355-1e44652d7590@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.8386.1395472819.18130.python-list@python.org> (permalink)

Show all headers | View raw


peace <abhishek1899@gmail.com> writes:
> On Thursday, March 20, 2014 1:20:03 AM UTC-7, dieter wrote:
> ...
>> You may want to use debugging to determine what goes on in detail.
> ...
> I tried doing that. I still could not figure out what was wrong. Thank you.

Debugging is often not easy. An essential strategy is "divide and conquer":
i.e. you split the complete scenario into segments and analyse each
segment to find out where the bad thing happens.

Related to pickle, there is one point to lock at closely: where
you "dump" the data. Verify, that you are dumping the correct (expected) data.
If the data is not as you expect at that point, you must analyse
the first part (from where the data was produced up to the dumping point);
on the other hand, if the dumped data is correct, you would verify
that "load" restores this same data (this will be very likely the case)
and if it does why it became wrong afterward.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


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