Website hosting service by

 Back to Index

6.8.1 Popen3 and Popen4 Objects

Instances of the Popen3 and Popen4 classes have the following methods:


poll( )
Returns -1 if child process hasn't completed yet, or its return code otherwise.


wait( )
Waits for and returns the status code of the child process. The status code encodes both the return code of the process and information about whether it exited using the exit() system call or died due to a signal. Functions to help interpret the status code are defined in the os module; see section 6.1.5 for the W*() family of functions.

The following attributes are also available:


A file object that provides output from the child process. For Popen4 instances, this will provide both the standard output and standard error streams.


A file object that provides input to the child process.


Where the standard error from the child process goes is capturestderr was true for the constructor, or None. This will always be None for Popen4 instances.


The process ID of the child process.




2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to offers domain name registration, domain name transfer and domain search services  

Cheap domain registration : Register domain name or buy domain name, including free domain hosting services


Domain registration : Buy domain name or register domain name from $5.95/year only