[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

Zhibin Dong report at bugs.python.org
Mon Feb 24 20:09:18 EST 2020


Zhibin Dong <developerdong at gmail.com> added the comment:

Yes, I think you are right. In the second solution, the callback of SIGINT will be append to the end of one task loop. If that code is defined in a task by some user, KeyboardInterrupt will not be raised.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39622>
_______________________________________


More information about the Python-bugs-list mailing list