From: Andrés Delfino Date: Sat, 7 Jul 2018 20:17:16 +0000 (-0300) Subject: bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510) X-Git-Tag: v3.8.0a1~1414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6bb77c2b8e83ba6cb845c7b512ac564276e854f;p=python bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510) --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index f2e0fdbc5b..98649de731 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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.