New submission from Zhibin Dong :
As shown in the code, when 0 is passed to asyncio.sleep function, sometimes the
program does not exit when I press . I must press again to
close the program. However, when a number, such as 0.01, which is bigger than
0, is passed to the sleep function, the
Zhibin Dong added the comment:
Ubuntu 18.04.4 with kernel 5.3.0-28-generic. Additionally Python version is
3.7.3.
--
___
Python tracker
<https://bugs.python.org/issue39
Zhibin Dong added the comment:
Thank you for your investigation, I will also try to see what went wrong.
--
___
Python tracker
<https://bugs.python.org/issue39
Zhibin Dong 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