summaryrefslogtreecommitdiffstats
path: root/Doc/library/mmap.rst
diff options
context:
space:
mode:
authorWellington Pardim <wellpardim10@gmail.com>2020-02-10 20:13:41 (GMT)
committerGitHub <noreply@github.com>2020-02-10 20:13:41 (GMT)
commit6c9974e12c50150149b989aaef68be1fe46ea670 (patch)
treec9efc93c482c8f6a8f4205eb9378e726a3b53f89 /Doc/library/mmap.rst
parented335cf53b5d4bca9a08c9b83ba684ba17be0f10 (diff)
downloadcpython-6c9974e12c50150149b989aaef68be1fe46ea670.zip
cpython-6c9974e12c50150149b989aaef68be1fe46ea670.tar.gz
cpython-6c9974e12c50150149b989aaef68be1fe46ea670.tar.bz2
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>
Diffstat (limited to 'Doc/library/mmap.rst')
-rw-r--r--Doc/library/mmap.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index 12b14d6..1f3fbc3 100644
--- a/Doc/library/mmap.rst
+++ b/Doc/library/mmap.rst
@@ -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)