[Python-checkins] [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171)
Serhiy Storchaka
webhook-mailer at python.org
Sat Jul 7 17:10:21 EDT 2018
https://github.com/python/cpython/commit/ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d
commit: ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d
branch: 2.7
author: Andrés Delfino <adelfino at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-07-08T00:10:18+03:00
summary:
[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 at gmail.com>
files:
M Doc/library/io.rst
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.
More information about the Python-checkins
mailing list