Re: [Tutor] thread and os.pipe

2007-12-13 Thread Tiago Saboga
On Sun, Dec 09, 2007 at 12:25:59AM -, Alan Gauld wrote: > > updated to show the output from the commands. What I want to do > > is make the doit() method of the Converter class return a pipe, > > through which it will then send the output of the programs. > > I'm still not convinced that a pip

Re: [Tutor] thread and os.pipe

2007-12-08 Thread Alan Gauld
"Tiago Saboga" <[EMAIL PROTECTED]> wrote >> Why not just set up outw to the output of Popen? > > Because in the more complicated case, the run function would have > several steps, including some external processes with Popen. The > run() > function will take care of determining which processes wi

Re: [Tutor] thread and os.pipe

2007-12-08 Thread Tiago Saboga
On Sat, Dec 08, 2007 at 11:54:07AM -, Alan Gauld wrote: > "Tiago Saboga" <[EMAIL PROTECTED]> wrote > > > what's happening in this simple example. I want to establish a > > connection between my two threads by a os.pipe, > > While its possible to use a pipe to communicate within a process > it

Re: [Tutor] thread and os.pipe (was: logic for a tree like structure)

2007-12-08 Thread Alan Gauld
"Tiago Saboga" <[EMAIL PROTECTED]> wrote > what's happening in this simple example. I want to establish a > connection between my two threads by a os.pipe, While its possible to use a pipe to communicate within a process its not very helpful and very rarely done. Usially queues are used for commu