[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2021-02-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2021-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: If you just need help, I recommend https://discuss.python.org/c/users/7 If you still have an issue with ^C, open a new issue. -- ___ Python tracker __

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2021-02-01 Thread Matej Volf
Matej Volf added the comment: python/asyncio is archived now and there is no definitive resolution, nor a concrete workaround in that thread. has this progressed elsewhere? or is it still unresolved? could anyone please show sample workaround code? (i need to call some cleanup code which st

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2016-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Closing this issue in favor of the upstream one: https://github.com/python/asyncio/issues/341 -- resolution: -> third party status: open -> closed ___ Python tracker __

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2016-02-28 Thread Michel Desmoulin
New submission from Michel Desmoulin: If you trigger KeyboardInterrupt in a coroutine and catch it, the program terminates cleanly: import asyncio async def bar(): raise KeyboardInterrupt loop = asyncio.get_event_loop() try: loop.run_until_complete(bar()) except KeyboardInterrupt: