[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2020-11-03 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ _

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2020-11-03 Thread Irit Katriel
Irit Katriel added the comment: Since this is a python 2 only issue, should this issue be closed as out of date? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-11-15 Thread Jun Wu
Jun Wu added the comment: haypo: The file.__iter__ EINTR issue may be better discussed as a separate bug report. It's not related to stdin or EOF or Windows. Since we have some EINTR fixes for Python 2.7.4, I think it's reasonable to fix the remaining EINTR issues for 2.7.13+. If I have read

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-11-15 Thread STINNER Victor
STINNER Victor added the comment: I don't see any simple solution to get a 100% reliable I/O stack on Python 2. Python 3.5 contains a pure Python implementation of the io module: _pyio.FileIO uses os.read() and os.write(). In Python 3.4 and older, the _pyio still used io.FileIO (implemented in

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-11-15 Thread STINNER Victor
STINNER Victor added the comment: Martijn Pieters: Sadly, Python 2 I/O are full of bugs in corner cases :-/ First of all, in most cases, Python 2 uses the libc for I/O, but the libc has known bugs including segfaults: https://haypo-notes.readthedocs.io/python.html#bugs-in-the-c-stdio-used-by-th

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-11-15 Thread Martijn Pieters
Martijn Pieters added the comment: It looks like readahead was missed when http://bugs.python.org/issue12268 was fixed. -- ___ Python tracker ___ _

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-11-15 Thread Martijn Pieters
Martijn Pieters added the comment: This bug affects all use of `file.__iter__` and interrupts (EINTR), not just sys.stdin. You can reproduce the issue by reading from a (slow) pipe in a terminal window and resizing that window, for example; the interrupt is not handled and a future call ends

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-02-04 Thread Don Hatch
Don Hatch added the comment: I've reported the unfriendly input withholding that several people have observed and mentioned here as a separate bug: http://bugs.python.org/issue26290 . The symptom is different but I suspect it has exactly the same underlying cause (incorrect use of stdio) and fi

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2016-01-07 Thread Dan Kegel
Dan Kegel added the comment: Still present in python 2.7.9, but fixed in python 3.4.3. Also, in python 3.4.3, output is immediate, there seems to be no input buffering. -- nosy: +dankegel ___ Python tracker _

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2013-01-13 Thread Jaroslav Henner
Changes by Jaroslav Henner : -- nosy: +jary ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2012-01-28 Thread Ralph Corderoy
Ralph Corderoy added the comment: This most certainly is a bug under Unix and an annoying one. "Since the issue is with platform's stdio library" is wrong; stdio is being used incorrectly. It would be nice to see it fixed in the 2.x line. I've two test programs. $ head -42 stdin2.6 stdi

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-12-16 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: I guess http://bugs.python.org/issue1195 might be related -- nosy: +nvetoshkin ___ Python tracker ___ _

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-12-15 Thread Finkregh
Changes by Finkregh : -- nosy: +Finkregh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-08-08 Thread Éric Araujo
Éric Araujo added the comment: Benjamin, is it too late too have this fixed in 2.7? -- nosy: +benjamin.peterson, merwok ___ Python tracker ___

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-08-08 Thread Mark Lawrence
Mark Lawrence added the comment: This is fixed in py3k but still exists in 2.7. -- nosy: +BreamoreBoy versions: +Python 2.7 -Python 2.6 ___ Python tracker ___

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2009-08-04 Thread Fan Decheng
Changes by Fan Decheng : -- nosy: +r_mosaic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2009-03-30 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed title: for line in sys.stdin: doesn't notice EOF the first time -> for line in sys.stdin: doesn't notice EOF the first time type: -> behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker