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 vstinner
Recipients Mark.Shannon, eryksun, gvanrossum, miss-islington, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2020-11-13.14:35:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605278157.16.0.455285546277.issue42296@roundup.psfhosted.org>
In-reply-to
Content
> This code cannot be interrupted with ^C on Windows (e.g. in the REPL)

I tested manually: it's now fixed in 3.9 and master branches.

Thanks for the bug report Guido.


Signal handling is hard. Threads + signals is worse! :-) I modified _PyEval_SignalReceived() to always set eval_breaker to 1. See comments of my commit for the long rationale ;-)


If someone knows how to write an automated test for that on Windows, please create a PR and open a new issue ;-)
History
Date User Action Args
2020-11-13 14:35:57vstinnersetrecipients: + vstinner, gvanrossum, paul.moore, tim.golden, Mark.Shannon, zach.ware, serhiy.storchaka, eryksun, steve.dower, miss-islington
2020-11-13 14:35:57vstinnersetmessageid: <1605278157.16.0.455285546277.issue42296@roundup.psfhosted.org>
2020-11-13 14:35:57vstinnerlinkissue42296 messages
2020-11-13 14:35:57vstinnercreate