Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.193 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.65; '*S*': 0.03; 'true,': 0.05; 'jan': 0.12; 'windows': 0.15; 'lightweight.': 0.16; 'threads,': 0.16; 'wrote:': 0.18; 'paul': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'probably': 0.32; 'url:python': 0.33; 'fri,': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'behind': 0.37; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'more': 0.64; '30,': 0.65; 'completion': 0.78; '11:45': 0.84; '2015': 0.84; 'scenes': 0.84; 'whereas': 0.91; 'ports': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=RkazmojXHmwvp++TLaJktY6FBEHbifubKLOaqBjNYhM=; b=HLr6DgnR6Gf31HDy3bxt3RtUwjPU/B4U4wOWKrHCwWdQ1muBUoKEK12BalYh0BAwzX ySHyZJKZZXNHwe+TOWUBgR+IM2pXHfyVWpNTAESFRSyYvg69DiQNaM3Hzls16fx0GTEm KQYCx66kcAuXDA6TCcCQDLdGeExIYdlbUiXd3VL+IcqJdL1vl1ItEGHMsc6B8GpPnAFG Z2D14TnMiQnUju75sRIaccz0+Tvu7U91SLKYSoaPI2kNgMtWBnqIj/ETePNdrp7sD0aF nEMkcY2C5ELrO/o76cG0C5/01h+iJrtYngiZLQgxeKDF7TaNqCfuq6m8MmOwcNF7ZURQ WA/Q== X-Received: by 10.70.92.200 with SMTP id co8mr10804446pdb.101.1422646795052; Fri, 30 Jan 2015 11:39:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Fri, 30 Jan 2015 12:39:14 -0700 Subject: Re: Multiplexing 2 streams with asyncio To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422646805 news.xs4all.nl 2852 [2001:888:2000:d::a6]:37211 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84916 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 doesn't work with pipes: https://docs.python.org/3/library/asyncio-eventloops.html#windows