[issue1191964] asynchronous Subprocess

Richard Oudkerk report at bugs.python.org
Tue May 22 16:27:40 CEST 2012


Richard Oudkerk <shibturn at gmail.com> added the comment:

Personally, I would factor out the code for Popen.communicate() in to a Communicator class which wraps a Popen object and has a method

    communicate(input, timeout=None) -> (bytes_written, output, error)

On Windows this would use threads, and on Unix, select.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1191964>
_______________________________________


More information about the Python-bugs-list mailing list