[Python-Dev] Status of PEP 3145 - Asynchronous I/O for subprocess.popen

Victor Stinner victor.stinner at gmail.com
Fri Mar 28 00:24:34 CET 2014


2014-03-27 22:52 GMT+01:00 Josiah Carlson <josiah.carlson at gmail.com>:
> * Because it is example docs, maybe a multi-week bikeshedding discussion
> about API doesn't need to happen (as long as "read line", "read X bytes",
> "read what is available", and "write this data" - all with timeouts - are
> shown, people can build everything else they want/need)

I don't understand this point. Using asyncio, you can read and write a
single byte or a whole line. Using functions like asyncio.wait_for(),
it's easy to add a timeout on such operation.

Victor


More information about the Python-Dev mailing list