]> granicus.if.org Git - python/commitdiff
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 7 Jul 2018 20:39:03 +0000 (13:39 -0700)
committerGitHub <noreply@github.com>
Sat, 7 Jul 2018 20:39:03 +0000 (13:39 -0700)
(cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f)

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

index f2e0fdbc5bf3cd4c7991e32ebc979c2287dbbac0..98649de7310f0bf68d1bcba8a998c082946d4001 100644 (file)
@@ -799,7 +799,7 @@ Text I/O
 
       .. versionadded:: 3.1
 
-   .. method:: read(size)
+   .. method:: read(size=-1)
 
       Read and return at most *size* characters from the stream as a single
       :class:`str`.  If *size* is negative or ``None``, reads until EOF.