Skip to content

Commit 9b369c9

Browse files
bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (GH-27113)
Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit 3b5b99d) Co-authored-by: andrei kulakov <[email protected]>
1 parent 1cc6769 commit 9b369c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/io.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ I/O Base Classes
391391
to control the number of lines read: no more lines will be read if the
392392
total size (in bytes/characters) of all lines so far exceeds *hint*.
393393

394+
*hint* values of ``0`` or less, as well as ``None``, are treated as no
395+
hint.
396+
394397
Note that it's already possible to iterate on file objects using ``for
395398
line in file: ...`` without calling ``file.readlines()``.
396399

0 commit comments

Comments
 (0)