[docs] [issue15068] fileinput requires two EOF when reading stdin

Serhiy Storchaka report at bugs.python.org
Thu Jun 14 22:02:45 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

Note that in the rare cases, when stdio ends immediately on the limit of the read buffer, just one EOF is sufficient. In particular for read(1) one EOF is sufficient always, and for read(2) it is sufficient in about half of the cases.

----------

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


More information about the docs mailing list