Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Interact with process: Send data to stdin.  Read data from
stdout and stderr, until end-of-file is reached.  Wait for
process to terminate.  The optional input argument should be a
string to be sent to the child process, or None, if no data
should be sent to the child.

communicate() returns a tuple (stdout, stderr).

src/p/y/pyrepl-0.8.4/encopyright.py   pyrepl(Download)
        '-r', 'not keyword("encopyright")',
    ], stdout=py.std.subprocess.PIPE)
    output, _ = proc.communicate()
    lines = output.splitlines()
    for line in lines:

src/p/y/pytest-2.5.2/testing/test_argcomplete.py   pytest(Download)
        process = py.std.subprocess.Popen(
            stdout=py.std.subprocess.PIPE, *args, **kargs)
        output, unused_err = process.communicate()
        retcode = process.poll()
        if retcode: