Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393e23f commit 707bd4eCopy full SHA for 707bd4e
1 file changed
Doc/library/io.rst
@@ -699,11 +699,13 @@ Text I/O
699
Read and return at most *n* characters from the stream as a single
700
:class:`str`. If *n* is negative or ``None``, reads until EOF.
701
702
- .. method:: readline()
+ .. method:: readline(limit=-1)
703
704
Read until newline or EOF and return a single ``str``. If the stream is
705
already at EOF, an empty string is returned.
706
707
+ If *limit* is specified, at most *limit* characters will be read.
708
+
709
.. method:: seek(offset, whence=SEEK_SET)
710
711
Change the stream position to the given *offset*. Behaviour depends
0 commit comments