Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eea1f5c

Browse files
committed
Merge
2 parents c616604 + 614c578 commit eea1f5c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.4.0 Alpha 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #17619: Make input() check for Ctrl-C correctly on Windows.
14+
1315
- Issue #17357: Add missing verbosity messages for -v/-vv that were lost during
1416
the importlib transition.
1517

Python/bltinmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,6 +1733,7 @@ builtin_input(PyObject *self, PyObject *args)
17331733
}
17341734
s = PyOS_Readline(stdin, stdout, prompt);
17351735
if (s == NULL) {
1736+
PyErr_CheckSignals();
17361737
if (!PyErr_Occurred())
17371738
PyErr_SetNone(PyExc_KeyboardInterrupt);
17381739
goto _readline_errors;

0 commit comments

Comments
 (0)