[Python-ideas] Adding a subprocess.CompletedProcess class

Paul Moore p.f.moore at gmail.com
Mon Feb 2 17:05:41 CET 2015


On 2 February 2015 at 16:00, Gregory P. Smith <greg at krypto.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.

Paul

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 :-(


More information about the Python-ideas mailing list