From 614c578dec856dc8a255b27a63559c6912ddc2e8 Mon Sep 17 00:00:00 2001 From: Richard Oudkerk Date: Wed, 3 Apr 2013 13:44:50 +0100 Subject: Issue #17619: Make input() check for Ctrl-C correctly on Windows. --- Misc/NEWS | 2 ++ Python/bltinmodule.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 621cdaa..da04b0e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,8 @@ What's New in Python 3.3.2? Core and Builtins ----------------- +- Issue #17619: Make input() check for Ctrl-C correctly on Windows. + - Issue #17610: Don't rely on non-standard behavior of the C qsort() function. - Issue #17357: Add missing verbosity output when using -v/-vv. diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bf90aba..75afa86 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1733,6 +1733,7 @@ builtin_input(PyObject *self, PyObject *args) } s = PyOS_Readline(stdin, stdout, prompt); if (s == NULL) { + PyErr_CheckSignals(); if (!PyErr_Occurred()) PyErr_SetNone(PyExc_KeyboardInterrupt); goto _readline_errors; -- cgit v0.12