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 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 <1498890036.0.0.00783324778199.issue29926@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
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: <1498890036.0.0.00783324778199.issue29926@psf.upfronthosting.co.za>
2017-07-01 06:20:35martin.panterlinkissue29926 messages
2017-07-01 06:20:35martin.pantercreate