Skip to content

Commit 770937b

Browse files
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
(cherry picked from commit b6bb77c) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 3271fba commit 770937b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ Text I/O
790790

791791
.. versionadded:: 3.1
792792

793-
.. method:: read(size)
793+
.. method:: read(size=-1)
794794

795795
Read and return at most *size* characters from the stream as a single
796796
:class:`str`. If *size* is negative or ``None``, reads until EOF.

0 commit comments

Comments
 (0)