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

Joey Geralnik report at bugs.python.org
Fri Jun 15 16:59:07 CEST 2012


Joey Geralnik <jgeralnik at gmail.com> added the comment:

But this is calling the readlines function, which continually reads from the file until more bytes have been read than the specified argument.

>From bz2.readlines:
"size can be specified to control the number of lines read: no further lines will be read once the total size of the lines read so far equals or exceeds size."

Do other file-like objects interpret this parameter differently?

----------

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


More information about the docs mailing list