From: Andrés Delfino Date: Sat, 7 Jul 2018 21:10:18 +0000 (-0300) Subject: [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional... X-Git-Tag: v2.7.16rc1~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d;p=thirdparty%2FPython%2Fcpython.git [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171) (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 300041dc3bb1..dcdd01cd0aa5 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.