From ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sat, 7 Jul 2018 18:10:18 -0300 Subject: [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino --- Doc/library/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 300041d..dcdd01c 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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. -- cgit v0.12