asyncio - how to stop background task cleanly

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

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

> "Frank Millman" <frank at>:
> > 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.


More information about the Python-list mailing list