popen3 child_stdin

Peter Hansen peter at engcorp.com
Sun Jun 15 18:05:29 EDT 2003


ddoc wrote:
> 
> popen3(cmd[, mode[, bufsize]]) Executes cmd as a sub-process. Returns the
> file objects (child_stdin, child_stdout, child_stderr). Availability: Unix,
> Windows. New in version 2.0.
> 
> I may be having a moment of brain fade, but I can't see how I get hold of
> child_stdin etc, having started up a DOS program with popen3

If you mean you don't understand what the docs are telling you, then
this example based on the above text might help:

  childStdin, childStdout, childStderr = popen3(cmd, mode, bufsize)

The return value is expressed as a tuple of three elements....

-Peter




More information about the Python-list mailing list