Popen

Kushal Kumaran kushal.kumaran+python at gmail.com
Fri Jul 24 10:58:49 EDT 2009


On Fri, Jul 24, 2009 at 7:33 PM, Tim<timlee126 at yahoo.com> wrote:
>
> Hi,
> I wonder if I use Popen, the parent process will wait for the child process to finish or continue without waiting?
> Thanks and regards!
>

Assuming you mean subprocess.Popen, the child is executed
asynchronously.  You can use the wait() method on the Popen object if
you want the parent to wait for the child to finish.

-- 
kushal



More information about the Python-list mailing list