Re: Question about pickle

2013-06-26 Thread Phu Sam
f.seek(0) really does the trick. Danke sehr, Phu On Tue, Jun 25, 2013 at 6:47 AM, Peter Otten <[email protected]> wrote: > Phu Sam wrote: > > > I have a method that opens a file, lock it, pickle.load the file into a > > dictionary. > > I then modify the status of a record, then pickle.dump the

Re: Question about pickle

2013-06-25 Thread Peter Otten
Phu Sam wrote: > I have a method that opens a file, lock it, pickle.load the file into a > dictionary. > I then modify the status of a record, then pickle.dump the dictionary back > to the file. > > The problem is that the pickle.dump never works. The file never gets > updated. > > def updateSta

Question about pickle

2013-06-25 Thread Phu Sam
I have a method that opens a file, lock it, pickle.load the file into a dictionary. I then modify the status of a record, then pickle.dump the dictionary back to the file. The problem is that the pickle.dump never works. The file never gets updated. def updateStatus(self, fp, stn, status):