mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (#27114)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3b5b99da4b
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
This commit is contained in:
parent
105e6cd67c
commit
a3d20bfee3
1 changed files with 3 additions and 0 deletions
|
@ -315,6 +315,9 @@ I/O Base Classes
|
||||||
to control the number of lines read: no more lines will be read if the
|
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*.
|
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
|
Note that it's already possible to iterate on file objects using ``for
|
||||||
line in file: ...`` without calling ``file.readlines()``.
|
line in file: ...`` without calling ``file.readlines()``.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue