Re: [Tutor] cPickle usage

2005-08-25 Thread Kent Johnson
Jorge Louis de Castro wrote: > Hi, > > [Sorry for the repost, there was a typo previously] > > I think I may have misinterpreted the syntax of cPickle. I have dumped data > onto a file using: > > output = codecs.open(".\\"+self.filename, "ab") Use plain open(), not codecs.open(), as you are no

Re: [Tutor] cPickle usage

2005-08-25 Thread Pierre Barbier de Reuille
Jorge Louis de Castro a écrit : > Hi, > > [Sorry for the repost, there was a typo previously] > > I think I may have misinterpreted the syntax of cPickle. I have dumped data > onto a file using: > > [...] > > I thought I could unpickle this using the load feature, something like: > inFile =

[Tutor] cPickle usage

2005-08-25 Thread Jorge Louis de Castro
Hi, [Sorry for the repost, there was a typo previously] I think I may have misinterpreted the syntax of cPickle. I have dumped data onto a file using: output = codecs.open(".\\"+self.filename, "ab") cPickle.dump(self.terms, output) cPickle.dump(self.username, output) cPickle.dump(self.age, outp