]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43126: Expand docs on io.IOBase.readlines() method (#27061)
authorandrei kulakov <andrei.avk@gmail.com>
Tue, 13 Jul 2021 14:07:56 +0000 (10:07 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Jul 2021 14:07:56 +0000 (16:07 +0200)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Doc/library/io.rst

index f9ffc19fac489d2d33d44000a8c9d8b09c870c93..0881015c7fad6842f9a564163dbc2bf1edf22ab3 100644 (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()``.