This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco
Date 2012-06-14.15:19:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339687174.96.0.0386214807139.issue15068@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-06-14 15:19:35jaracosetrecipients: + jaraco
2012-06-14 15:19:34jaracosetmessageid: <1339687174.96.0.0386214807139.issue15068@psf.upfronthosting.co.za>
2012-06-14 15:19:34jaracolinkissue15068 messages
2012-06-14 15:19:34jaracocreate