Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'report.': 0.07; '22,': 0.09; 'raises': 0.09; 'windows,': 0.09; 'wrong,': 0.09; 'cc:addr:python-list': 0.11; 'bug': 0.12; "wouldn't": 0.14; 'windows': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'not,': 0.20; 'cc:addr:python.org': 0.22; 'skip:l 30': 0.24; 'cc:2**0': 0.24; 'equivalent': 0.26; 'skip:" 30': 0.26; 'header :In-Reply-To:1': 0.27; 'wondering': 0.29; 'feature': 0.29; 'am,': 0.29; 'raise': 0.29; 'unix': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; '(most': 0.33; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'subject:skip:d 10': 0.36; 'doing': 0.36; 'list': 0.37; 'recent': 0.39; 'skip:n 10': 0.64; 'different': 0.65; 'request.': 0.70; 'jul': 0.74; 'surprise': 0.74; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=UolaR7mw7y/UBadIeLamxnD0S1CP9O4VPDpNRGhROfM=; b=ewZA7Pwut+9OZrQ9P0yZ/ieQI1VNpXU24rrYgmXd95Dqa/i7rwCTI/M2Qpf75dKRP9 R/u8o13zET9l5KZDzG4Ssoz2o9nwL2Z+WuyJmXBIvL4d2RmLhE6sVGLTEeJJ7pSoYAXp rNj00ibtyKhLULHjf25VbRtprjK9zkg4rPkS5YsTrXirnA22ePvJx6nTSg+SLxmYBgpa ia0IcadWDlVkoBTzkUDToaZ0VP9JaUPowpg/fCBCvoEkoko29lt67Q2en+h1yJhPr7Aa sNzTw6I/wbYaLk47S1FXnjTyWjdBgkDbniCp3KiHWKKWTS6Rv3Sy2uwgHU11BMmCOFho NyTw== MIME-Version: 1.0 X-Received: by 10.52.178.66 with SMTP id cw2mr4099035vdc.93.1405968305495; Mon, 21 Jul 2014 11:45:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Jul 2014 04:45:05 +1000 Subject: Re: Event loop documentation error From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405968308 news.xs4all.nl 2837 [2001:888:2000:d::a6]:48504 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74944 On Tue, Jul 22, 2014 at 4:38 AM, Ya=C5=9Far Arabac=C4=B1 wrote: > Traceback (most recent call last): > File "C:/Users/gorki/Documents/Python Scripts/as-io.py", line 14, in > loop.add_signal_handler(SIGINT, partial(ask_exit, "SIGINT")) > File "C:\Python34\lib\asyncio\events.py", line 329, in add_signal_handl= er > raise NotImplementedError > NotImplementedError > > I was wondering if there is something I am doing wrong, or is this > behaviour platform specific (I am on windows 7). I wanted to ask in > the list before I file a bug report. SIGINT is a Unix signal. There is an equivalent for Windows, but it wouldn't at all surprise me if trying to hook signals raises NotImplementedError. See if there's a different way to hook Ctrl-C on Windows; if not, you may want to word your report as a feature request. ChrisA