From 770937b6fd87af91390ac765f6a4c4767432cbc3 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 7 Jul 2018 13:45:07 -0700 Subject: [PATCH] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 73b3efff0f..28aac923cc 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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. -- 2.50.1