New submission from Jason R. Coombs <jar...@jaraco.com>: I found that fileinput.input() requires two EOF characters to stop reading input on Python 2.7.3 on Windows and Ubuntu:
PS C:\Users\jaraco> python Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 >>> import fileinput >>> lines = list(fileinput.input()) foo bar ^Z ^Z >>> lines ['foo\n', 'bar\n'] I don't see anything in the documentation that suggests that two EOF characters would be required, and I can't think of any reason why that should be the case. ---------- components: Library (Lib) messages: 162798 nosy: jason.coombs priority: normal severity: normal status: open title: fileinput requires two EOF when reading stdin versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15068> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com