[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

Ralf Schmitt report at bugs.python.org
Tue May 10 11:30:04 CEST 2011


Ralf Schmitt <schmir at gmail.com> added the comment:

Either you clearerr or you can't rely on feof. fgets might also set the end of file indicator *and* return valid data. I don't see a reason to not call clearerr right before trying to read from the stream.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1195>
_______________________________________


More information about the Python-bugs-list mailing list