mirror of https://github.com/python/cpython
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
This commit is contained in:
parent
2d748389dc
commit
b6bb77c2b8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue