Re: [Tutor] file object in memory

2008-07-07 Thread Monika Jisswel
I didn't know about tempfile.NamedTemporaryFile ! looks nice because you don't care about the file anymore, you just use it. another solution could be to wrap the data (that is each line in the file still in memory) into mysql statements such as 'insert into table (aa, bb, cc) values ( 11,

[Tutor] file object in memory

2008-07-04 Thread Monika Jisswel
Hi everyone, In my program I have this code : self.run_cmd_0 = subprocess.Popen(self.cmd_0, stdout = subprocess.PIPE, shell = True) #(1) self.run_cmd_1 = subprocess.Popen(self.TOCOL, stdin = self.run_cmd_0.stdout, stdout = subprocess.PIPE, shell = True)#(2) self.result_0 =

Re: [Tutor] file object in memory

2008-07-04 Thread bob gailer
Monika Jisswel wrote: Hi everyone, In my program I have this code : self.run_cmd_0 = subprocess.Popen(self.cmd_0, stdout = subprocess.PIPE, shell = True) #(1) self.run_cmd_1 = subprocess.Popen(self.TOCOL, stdin = self.run_cmd_0.stdout, stdout = subprocess.PIPE, shell =

Re: [Tutor] file object in memory

2008-07-04 Thread Monika Jisswel
You know bob, you are very clever, I have used RAM disk for realtime recording of audio before but it never occured to me to use it for light jobs like this one, I just compeletely ignored it as an option by the way this openes a lot of doors for many of my other programs. but wouldn't it be

Re: [Tutor] file object in memory

2008-07-04 Thread bob gailer
Monika Jisswel wrote: You know bob, you are very clever Yes. I've observed that before. , I have used RAM disk for realtime recording of audio before but it never occured to me to use it for light jobs like this one, I just compeletely ignored it as an option by the way this openes a lot of