bpo-43126: Expand docs on io.IOBase.readlines() method (#27061)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
andrei kulakov 2021-07-13 10:07:56 -04:00 committed by GitHub
parent 48a5aa7f12
commit 3b5b99da4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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()``.