On 2 February 2015 at 16:00, Gregory P. Smith firstname.lastname@example.org wrote:
For the capture and forward of output you probably want to base a solution on https://docs.python.org/3/library/asyncio-subprocess.html these days rather than rolling your own poll + read + echo loop.
For integrating with existing code, can asyncio interoperate with subprocess.Popen objects? I couldn't see how from my reading of the docs. It feels to me from the docs as if asyncio is an architecture choice - if you're not using asncio throughout your program, it's of no help to you. I may well have misunderstood something, though, as I thought one of the aims of asyncio was that it could work in conjunction with more traditional code.
PS Are there any good asyncio tutorials? Particularly ones *not* about implementing network protocols. It feels like you need a degree to understand the docs :-(