Skip to content

Commit ad0fc8d

Browse files
andresdelfinoserhiy-storchaka
authored andcommitted
[2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171)
(cherry picked from commit b6bb77c) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 8902a1d commit ad0fc8d

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
@@ -724,7 +724,7 @@ Text I/O
724724

725725
.. versionadded:: 2.7
726726

727-
.. method:: read(n)
727+
.. method:: read(n=-1)
728728

729729
Read and return at most *n* characters from the stream as a single
730730
:class:`unicode`. If *n* is negative or ``None``, reads until EOF.

0 commit comments

Comments
 (0)