summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-07-07 18:10:18 -0300
committerSerhiy Storchaka <storchaka@gmail.com>2018-07-08 00:10:18 +0300
commitad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d (patch)
treecc8c44fd7840bc7664c0324f7f3389e55d54a7cd /Doc
parent8902a1d14e9fe6fb80f4145ad4ea27a579567289 (diff)
downloadcpython-git-ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d.tar.gz
[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 <adelfino@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/io.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 300041dc3b..dcdd01cd0a 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.