On 06/25/2013 01:54 PM, Alan Gauld wrote: > On 25/06/13 17:32, Matt D wrote: > >> self.data = data >> with open('mypicklelog.txt','ab') as log: # open in binary mode >> pickle.dump(self.data, log) # serialize data and write to >> file >> >> >> And I still get nothing. > > Define 'nothing'. > > Does the file exist? > Does it have anything in it? > Does self.data exist - what does it look like if you print it? > Are there any error messages? > Yeh nothing as in an empty file. The file is there but there is nothing written in it. self.data exists. that the problem if have is printing what is in it so i dont know what it looks like. No error messages currently in the terminal. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
- Re: [Tutor] Need help printing a pic... Matt D
- Re: [Tutor] Need help printing a... Peter Otten
- Re: [Tutor] Need help printing a... Prasad, Ramit
- Re: [Tutor] Need help printing a... Matt D
- Re: [Tutor] Need help printing a... Prasad, Ramit
- Re: [Tutor] Need help printing a... Steven D'Aprano
- Re: [Tutor] Need help printing a... Matt D
- Re: [Tutor] Need help printing a... Prasad, Ramit
- Re: [Tutor] Need help printing a... Matt D
- Re: [Tutor] Need help printing a... Alan Gauld
- Re: [Tutor] Need help printing a... Matt D
- Re: [Tutor] Need help printing a... Alan Gauld
- Re: [Tutor] Need help printing a... Steven D'Aprano
- Re: [Tutor] Need help printing a... Marc Tompkins
- Re: [Tutor] Need help appending data to a logfile Peter Otten
- Re: [Tutor] Need help appending data to a logfile Jim Mooney
- Re: [Tutor] Need help appending data to a logfile Dave Angel
- Re: [Tutor] Need help appending data to a log... Jim Mooney
- Re: [Tutor] Need help appending data to a... Mark Lawrence
- Re: [Tutor] Need help appending data... Jim Mooney
- Re: [Tutor] Need help appending ... Dave Angel