]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (#27114)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Jul 2021 14:41:31 +0000 (07:41 -0700)
committerGitHub <noreply@github.com>
Tue, 13 Jul 2021 14:41:31 +0000 (16:41 +0200)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3b5b99da4b256a31933112f4a2385386149c19e1)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Doc/library/io.rst

index 96e02e839ae6537c7811a287ebf58c9937fb46ac..0ff05cfc0e0911bec276be377d3b05ecffdfb1f0 100644 (file)
@@ -315,6 +315,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()``.