[Python-Dev] News from asyncio

Victor Stinner victor.stinner at gmail.com
Sun Feb 2 23:38:19 CET 2014


Latest asyncio update: it has a new asyncio.subprocess submodule which
provides a high-level API to control subprocesses, similar to
subprocess.Popen but using asyncio event loop (and so is
asynchronous).

It solves the following old and tricky issue:
http://bugs.python.org/issue12187
"subprocess.wait() with a timeout uses polling on POSIX"

"yield from asyncio.wait_for(proc.wait(), timeout)" is no more a busy loop ;-)

Victor


More information about the Python-Dev mailing list