mirror of https://github.com/python/cpython.git
bpo-43126: Expand docs on io.IOBase.readlines() method (#27061)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
48a5aa7f12
commit
3b5b99da4b
|
@ -391,6 +391,9 @@ I/O Base Classes
|
|||
to control the number of lines read: no more lines will be read if the
|
||||
total size (in bytes/characters) of all lines so far exceeds *hint*.
|
||||
|
||||
*hint* values of ``0`` or less, as well as ``None``, are treated as no
|
||||
hint.
|
||||
|
||||
Note that it's already possible to iterate on file objects using ``for
|
||||
line in file: ...`` without calling ``file.readlines()``.
|
||||
|
||||
|
|
Loading…
Reference in New Issue