Commit 4755ab01 authored by Victor Stinner's avatar Victor Stinner

Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,

clear the end-of-file indicator after CTRL+d.
parent f9756c23
...@@ -10,6 +10,9 @@ What's New in Python 3.1.4? ...@@ -10,6 +10,9 @@ What's New in Python 3.1.4?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
- Issue #9756: When calling a method descriptor or a slot wrapper descriptor, - Issue #9756: When calling a method descriptor or a slot wrapper descriptor,
the check of the object type doesn't read the __class__ attribute anymore. the check of the object type doesn't read the __class__ attribute anymore.
Fix a crash if a class override its __class__ attribute (e.g. a proxy of the Fix a crash if a class override its __class__ attribute (e.g. a proxy of the
......
...@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp) ...@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
} }
#endif /* MS_WINDOWS */ #endif /* MS_WINDOWS */
if (feof(fp)) { if (feof(fp)) {
clearerr(fp);
return -1; /* EOF */ return -1; /* EOF */
} }
#ifdef EINTR #ifdef EINTR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment