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


Groups > comp.lang.python > #74958

Re: Event loop documentation error

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'repository': 0.05; 'report.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrong,': 0.09; 'bug': 0.12; 'jan': 0.12; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.18; 'written': 0.21; 'example': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'skip:l 30': 0.24; '(see': 0.26; 'skip:" 30': 0.26; 'least': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'wondering': 0.29; 'raise': 0.29; 'getting': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; '(most': 0.33; 'something': 0.35; 'test': 0.35; 'there': 0.35; 'version': 0.36; '14,': 0.36; 'subject:skip:d 10': 0.36; 'doing': 0.36; 'url:org': 0.36; 'example,': 0.37; 'list': 0.37; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'today.': 0.61; 'url:3': 0.61; 'skip:n 10': 0.64; 'latest': 0.67; 'online': 0.71; 'upper': 0.74; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Event loop documentation error
Date Mon, 21 Jul 2014 17:50:57 -0400
References <CAFEUn8agDaOvMzXLv3vGD-5hw=oLmLYGHx31+CO7=Ds-tO8s2w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-71-175-90-87.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <CAFEUn8agDaOvMzXLv3vGD-5hw=oLmLYGHx31+CO7=Ds-tO8s2w@mail.gmail.com>
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.12154.1405979472.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405979472 news.xs4all.nl 2850 [2001:888:2000:d::a6]:41853
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74958

Show key headers only | View raw


On 7/21/2014 2:38 PM, Yaşar Arabacı wrote:
> I was reading https://docs.python.org/3/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm
> and wanted to test the example,

With 3.4.0, 3.4.1, or 3.5.0a0 in the repository (available to view at 
hg.python.org, I believe)?  Asyncio is patched at least once a week
You can access the latest version of the 3.5 docs online (see the box in 
upper left corner) also to check how the example is written today.

however, I am getting this error when
> I run the code;
>
> 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.
>


-- 
Terry Jan Reedy

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


Thread

Re: Event loop documentation error Terry Reedy <tjreedy@udel.edu> - 2014-07-21 17:50 -0400

csiph-web