mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-39369 Doc: Update mmap readline method documentation (GH-17957)
* Update mmap readline method documentation Update mmap `readline` method description. The fact that the `readline` method does update the file position should not be ignored since this might give the impression for the programmer that it doesn't update it. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
ed335cf53b
commit
6c9974e12c
2 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,8 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
|
|||
.. method:: readline()
|
||||
|
||||
Returns a single line, starting at the current file position and up to the
|
||||
next newline.
|
||||
next newline. The file position is updated to point after the bytes that were
|
||||
returned.
|
||||
|
||||
|
||||
.. method:: resize(newsize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue