Kaydet (Commit) 707bd4e3 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Mention the *limit* argument of TextIO.readline().

üst 393e23fb
......@@ -699,11 +699,13 @@ Text I/O
Read and return at most *n* characters from the stream as a single
:class:`str`. If *n* is negative or ``None``, reads until EOF.
.. method:: readline()
.. method:: readline(limit=-1)
Read until newline or EOF and return a single ``str``. If the stream is
already at EOF, an empty string is returned.
If *limit* is specified, at most *limit* characters will be read.
.. method:: seek(offset, whence=SEEK_SET)
Change the stream position to the given *offset*. Behaviour depends
......
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