Skip to content

Commit b6bb77c

Browse files
andresdelfinoserhiy-storchaka
authored andcommitted
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
1 parent 2d74838 commit b6bb77c

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
@@ -799,7 +799,7 @@ Text I/O
799799

800800
.. versionadded:: 3.1
801801

802-
.. method:: read(size)
802+
.. method:: read(size=-1)
803803

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

0 commit comments

Comments
 (0)