Commit b6bb77c2 authored by Andrés Delfino's avatar Andrés Delfino Committed by Serhiy Storchaka

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

parent 2d748389
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment