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 | jecanne |
|---|---|
| Recipients | jecanne, martin.panter, paul.moore, steve.dower, tim.golden, tjguk, vstinner, zach.ware |
| Date | 2016年03月11日.16:14:12 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1457712852.45.0.474558167901.issue26531@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Yeah, so this looks like a behavior in Windows in which an EOFError is raised when a Ctrl + C is pressed, followed by a KeyboardInterrupt. This post basically explains how to overcome it: http://stackoverflow.com/questions/31127652/cannot-catch-keyboardinterrupt-in-command-prompt-twice def bing(): try: input() except EOFError: print("Caught an EOFError") try: bing() print("After bing") except KeyboardInterrupt: print("Final KeyboardInterrupt") Sorry for necro-ing an old issue. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016年03月11日 16:14:12 | jecanne | set | recipients: + jecanne, paul.moore, vstinner, tim.golden, martin.panter, zach.ware, steve.dower, tjguk |
| 2016年03月11日 16:14:12 | jecanne | set | messageid: <1457712852.45.0.474558167901.issue26531@psf.upfronthosting.co.za> |
| 2016年03月11日 16:14:12 | jecanne | link | issue26531 messages |
| 2016年03月11日 16:14:12 | jecanne | create | |