Re: Multiplexing 2 streams with asyncio

2015-01-30 Thread Ian Kelly
On Fri, Jan 30, 2015 at 11:45 AM, Paul Moore wrote: > 2. Because on Windows I'd have to use threads, whereas asyncio uses IO > completion ports behind the scenes (I think) which are probably a lot more > lightweight. I have no idea whether that's true, but note that add_reader() on Windows doe

Multiplexing 2 streams with asyncio

2015-01-30 Thread Paul Moore
I'm trying to get to grips with asyncio. I *think* it's a reasonable fit for my problem, but I'm not really sure - so if the answer is "you shouldn't be doing that, then that's fair enough :-) What I am trying to do is, given 2 files (the stdout and stderr from a subprocess.Popen object, as it