This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kmaork
Recipients Zhibin Dong, asvetlov, kmaork, yselivanov
Date 2020-02-20.18:43:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This behaved similarly on my machine, also ubuntu. But it also happened (less often) with small numbers, like sleep(0.0000000000000000000001).

Also, I tried it on my windows 10 and experienced another unexpected behavior - only when using sleep(0), Ctrl-C would not work *at all* from time to time. Most of the times it would stop the program immediately. This also happened when using 0.0000000000000000000001 instead of 0.

Unless 0.0000000000000000000001 turns into 0 somewhere along the way, I'd suspect that there is a piece of code inside asyncio's core that doesn't handle interrupting correctly (both on linux and windows), and using sleep with small numbers just makes it much more probable for this piece of code to be running when the Ctrl-C signal is sent.

I'll try to dig in more.
Date User Action Args
2020-02-20 18:43:19kmaorksetrecipients: + kmaork, asvetlov, yselivanov, Zhibin Dong
2020-02-20 18:43:19kmaorksetmessageid: <>
2020-02-20 18:43:19kmaorklinkissue39622 messages
2020-02-20 18:43:18kmaorkcreate