[Python-checkins] bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (GH-27113)

ambv webhook-mailer at python.org
Tue Jul 13 10:41:20 EDT 2021


https://github.com/python/cpython/commit/9b369c952cbefb064dda6cb781e66cc1b793fffa
commit: 9b369c952cbefb064dda6cb781e66cc1b793fffa
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-13T16:41:12+02:00
summary:

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

Co-authored-by: Łukasz Langa <lukasz at langa.pl>
(cherry picked from commit 3b5b99da4b256a31933112f4a2385386149c19e1)

Co-authored-by: andrei kulakov <andrei.avk at gmail.com>

files:
M Doc/library/io.rst

diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index f9ffc19fac489..0881015c7fad6 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -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()``.
 



More information about the Python-checkins mailing list