asyncio - how to stop background task cleanly

Frank Millman frank at chagford.com
Sun Feb 7 05:20:12 EST 2016


"Marko Rauhamaa"  wrote in message news:871t8orhua.fsf at elektro.pacujo.net...

> "Frank Millman" <frank at chagford.com>:
>
> > I have never been able to get Ctrl+C to work properly on Windows, so I
> > use a separate thread that simply waits for Enter.
>
> Now you are leaving my realm of expertise, as I haven't programmed for
> windows since Windows 1.0. Mixing threads, asyncio, input() and Windows
> seems like begging for trouble, though.
>

Well, it is not such a big deal :-) The program I posted works 
cross-platform, so it will run on your linux box.

No matter, you have been an enormous help, and I am very grateful.

I found my bug, and my program is now running sweetly.

Frank




More information about the Python-list mailing list