[Python-checkins] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)

Miss Islington (bot) webhook-mailer at python.org
Sat Jul 7 16:39:06 EDT 2018


https://github.com/python/cpython/commit/e5b47ea5859522f81599a82d49175f6fad263482
commit: e5b47ea5859522f81599a82d49175f6fad263482
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年07月07日T13:39:03-07:00
summary:
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
(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 f2e0fdbc5bf3..98649de7310f 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.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /