Message162798
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. |
|
Date |
User |
Action |
Args |
2012-06-14 15:19:35 | jaraco | set | recipients:
+ jaraco |
2012-06-14 15:19:34 | jaraco | set | messageid: <1339687174.96.0.0386214807139.issue15068@psf.upfronthosting.co.za> |
2012-06-14 15:19:34 | jaraco | link | issue15068 messages |
2012-06-14 15:19:34 | jaraco | create | |
|