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


Groups > comp.lang.python > #74958 > unrolled thread

Re: Event loop documentation error

Started byTerry Reedy <tjreedy@udel.edu>
First post2014-07-21 17:50 -0400
Last post2014-07-21 17:50 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#74958 — Re: Event loop documentation error

FromTerry Reedy <tjreedy@udel.edu>
Date2014-07-21 17:50 -0400
SubjectRe: Event loop documentation error
Message-ID<mailman.12154.1405979472.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web