]> 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:45:07 +0000 (13:45 -0700)
committerGitHub <noreply@github.com>
Sat, 7 Jul 2018 20:45:07 +0000 (13:45 -0700)
(cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f)

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

index 73b3efff0f49a5be79e9708b20cd3b16317e1a3b..28aac923cc375b6a890131d2d905655202db8712 100644 (file)
@@ -790,7 +790,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.