[issue17986] Alternative async subprocesses (pep 3145)
STINNER Victor
report at bugs.python.org
Fri Feb 13 02:53:32 CET 2015
STINNER Victor added the comment:
Subprocess support of asyncio has nice features and is efficient:
- async read from stdout and stderr
- async write into stdin
- async wait for the process exit
- async communicate()
- timeout on any async operation
- support running multiple child processes in parallel
- epoll, kqueue, devpoll or IOCP selector
- On POSIX, fast child watcher waiting for SIGCHLD signal
If possible, I would prefer to not write a second "async subprocess".
It's possible to write a blocking API on top of asyncio using loop.run_until_complete().
sync_proc_asyncio.py: incomplete proof-of-concept (no working select() method).
----------
Added file: http://bugs.python.org/file38123/sync_proc_asyncio.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17986>
_______________________________________
More information about the Python-bugs-list
mailing list