]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(Merge 3.2) Issue #12016: my_fgets() now always clears errors before calling
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 30 May 2011 21:47:01 +0000 (23:47 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 30 May 2011 21:47:01 +0000 (23:47 +0200)
fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of
file), raw_input() interrupted by CTRL+c.

1  2 
Misc/NEWS

diff --cc Misc/NEWS
index 6a3266134e070505cc82d13700b4ea5db303b2b4,17ba290e3dee580375c170ee27d8972b086d04d7..68e81f0993c1decbf2d36cd0c57e45a04f26e1a0
+++ b/Misc/NEWS
@@@ -10,11 -10,10 +10,15 @@@ What's New in Python 3.3 Alpha 1
  Core and Builtins
  -----------------
  
+ - Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix
+   the following case: sys.stdin.read() stopped with CTRL+d (end of file),
+   raw_input() interrupted by CTRL+c.
 +- Issue #12216: Allow unexpected EOF errors to happen on any line of the file.
 +
 +- Issue #12199: The TryExcept and TryFinally and AST nodes have been unified
 +  into a Try node.
 +
  - Issue #9670: Increase the default stack size for secondary threads on
    Mac OS X and FreeBSD to reduce the chances of a crash instead of a
    "maximum recursion depth" RuntimeError exception.