Skip to content

Commit a3d20bf

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

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
@@ -315,6 +315,9 @@ I/O Base Classes
315315
to control the number of lines read: no more lines will be read if the
316316
total size (in bytes/characters) of all lines so far exceeds *hint*.
317317

318+
*hint* values of ``0`` or less, as well as ``None``, are treated as no
319+
hint.
320+
318321
Note that it's already possible to iterate on file objects using ``for
319322
line in file: ...`` without calling ``file.readlines()``.
320323

0 commit comments

Comments
 (0)