]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional...
authorAndrés Delfino <adelfino@gmail.com>
Sat, 7 Jul 2018 21:10:18 +0000 (18:10 -0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 7 Jul 2018 21:10:18 +0000 (00:10 +0300)
(cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/library/io.rst

index 300041dc3bb176b40d7dc084cb218ed7688cab20..dcdd01cd0aa5db86729c158fe1d0851cc8ea4f45 100644 (file)
@@ -724,7 +724,7 @@ Text I/O
 
       .. versionadded:: 2.7
 
-   .. method:: read(n)
+   .. method:: read(n=-1)
 
       Read and return at most *n* characters from the stream as a single
       :class:`unicode`.  If *n* is negative or ``None``, reads until EOF.