summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-07-07 20:17:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-07-07 20:17:16 (GMT)
commitb6bb77c2b8e83ba6cb845c7b512ac564276e854f (patch)
tree5f094273d5f4098f58068b1f529c036eef08f567 /Doc
parent2d748389dc9c8d083f51c7d28761e088a5468c86 (diff)
downloadcpython-b6bb77c2b8e83ba6cb845c7b512ac564276e854f.zip
cpython-b6bb77c2b8e83ba6cb845c7b512ac564276e854f.tar.gz
cpython-b6bb77c2b8e83ba6cb845c7b512ac564276e854f.tar.bz2
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
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 f2e0fdb..98649de 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.