[docs] [issue15068] fileinput requires two EOF when reading stdin
Antoine Pitrou
report at bugs.python.org
Fri Jun 15 17:46:52 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> > so the readlines function should always return at least as many bytes as its first parameter. Is this assumption wrong?
>
> qwert
> 'qwert\n'
>
> You type five characters "qwert" end press <Enter>. Python immediately
> receives these six characters, and returns a result of
> sys.stdin.readline(1000).
Well, did you try readline() or readlines()?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15068>
_______________________________________
More information about the docs
mailing list