Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74944

Re: Event loop documentation error

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 <rosuav@gmail.com>
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 <CAFEUn8agDaOvMzXLv3vGD-5hw=oLmLYGHx31+CO7=Ds-tO8s2w@mail.gmail.com>
References <CAFEUn8agDaOvMzXLv3vGD-5hw=oLmLYGHx31+CO7=Ds-tO8s2w@mail.gmail.com>
Date Tue, 22 Jul 2014 04:45:05 +1000
Subject Re: Event loop documentation error
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12145.1405968308.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, Jul 22, 2014 at 4:38 AM, Yaşar Arabacı <yasar11732@gmail.com> wrote:
> Traceback (most recent call last):
>   File "C:/Users/gorki/Documents/Python Scripts/as-io.py", line 14, in <module>
>     loop.add_signal_handler(SIGINT, partial(ask_exit, "SIGINT"))
>   File "C:\Python34\lib\asyncio\events.py", line 329, in add_signal_handler
>     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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Event loop documentation error Chris Angelico <rosuav@gmail.com> - 2014-07-22 04:45 +1000

csiph-web