Open
Description
Bug description:
In the Windows-specific implementation of time.sleep
there appears this code:
If a control-C event happens after PyErr_CheckSignals
returns, but before ResetEvent
is called, I believe that event may be lost.
This is probably a hard race window to hit, and I don't have a Windows development environment, so I have not confirmed that it is possible.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows