Yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/popen3-objects.html

From ZCubes Wiki
Revision as of 18:41, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-commands.html|[[Image:yur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


8.18.1 Popen3 Objects

Instances of the Popen3 class 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 return code of the child process.

The following attributes of Popen3 objects are also available:

fromchild
A file object that provides output from the child process.
tochild
A file object that provides input to the child process.
childerr
Where the standard error from the child process goes is capturestderr was true for the constructor, or None.
pid
The process ID of the child process.

Send comments on this document to python-docs@python.org.