I&#39;m sorry, I thought I was more clear with my test case. Obviously, I was not.<div><br></div><div><br></div><div>The problem is this:</div><div><br></div><div>    Python programs can call subprocesses. The python program can wait until the subprocess has finished and print the output captured. However, what we want is to print the output immediately as it is generated.</div>
<div><br></div><div>    So, instead of waiting for the subprocess to finish, the python program could continue -- printing the results as given by the subprocess.  From the way the test case is written, the communicate() method will wait until the subprocess is finished *before* it prints the results that were found.</div>
<div><br></div><div>Thanks for asking for clarification. You weren&#39;t the only person asking, so obviously I wasn&#39;t clear enough in defining the problem.</div><div><br></div><div><br></div><div>Cheers,</div><div><br>
</div><div><br></div><div>Glen</div><div><br><div class="gmail_quote">On Sat, Oct 2, 2010 at 10:13 AM, Aahz <span dir="ltr">&lt;<a href="mailto:aahz@pythoncraft.com">aahz@pythoncraft.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, Oct 02, 2010, Glen Jarvis wrote:<br>
&gt;<br>
&gt; I&#39;ve now seen a common problem come up several times. And, I imagine there<br>
&gt; is a common solution to this problem that I don&#39;t know.<br>
<br>
</div>Could you explain what the problem is?  I think it&#39;s related to buffering<br>
and pipes, but it&#39;s not clear from your post.<br>
<font color="#888888">--<br>
Aahz (<a href="mailto:aahz@pythoncraft.com">aahz@pythoncraft.com</a>)           &lt;*&gt;         <a href="http://www.pythoncraft.com/" target="_blank">http://www.pythoncraft.com/</a><br>
<br>
&quot;If you think it&#39;s expensive to hire a professional to do the job, wait<br>
until you hire an amateur.&quot;  --Red Adair<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
To change your subscription options or unsubscribe:<br>
<a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Whatever you can do or imagine, begin it;<br>boldness has beauty, magic, and power in it.<br><br>-- Goethe <br>
</div>