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:
Miss Islington (bot) 2021-07-13 07:41:31 -07:00 committed by GitHub
parent 105e6cd67c
commit a3d20bfee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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