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

Jun Wu report at bugs.python.org
Tue Nov 15 11:32:00 EST 2016


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 fileobject.c correctly, readahead() is the only remaining place having the EINTR issue.

If you agree that we should fix readahead(), I can prepare the patch.

----------
nosy: +quark

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


More information about the Python-bugs-list mailing list