Author martin.panter
Recipients Mark, eryksun, louielu, martin.panter, njs, pitrou, terry.reedy
Date 2017-07-01.06:20:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I doubt the Gnu Readline library nor Python’s readline module are relevant. The input function only uses Readline if sys.stdin is the original stdin terminal; I suspect Idle monkey-patches sys.stdin. The readline method reads directly from the file object; it never uses the Readline library (despite the unfortunate clash in names :).

Louie seems to have added two workarounds: the finish flag, and using interrupt_main with a timeout. Both seem racy. What if the flag is altered in another thread between when the flag is checked and when it is acted upon? What has to happen in the 0.2 s between calling interrupt_main and raising SIGINT?
Date User Action Args
2017-07-01 06:20:36martin.pantersetrecipients: + martin.panter, terry.reedy, pitrou, njs, Mark, eryksun, louielu
2017-07-01 06:20:36martin.pantersetmessageid: <>
2017-07-01 06:20:35martin.panterlinkissue29926 messages
2017-07-01 06:20:35martin.pantercreate