]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39369 Doc: Update mmap readline method documentation (GH-17957)
authorWellington Pardim <wellpardim10@gmail.com>
Mon, 10 Feb 2020 20:13:41 +0000 (17:13 -0300)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 20:13:41 +0000 (12:13 -0800)
* 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>
Doc/library/mmap.rst
Misc/NEWS.d/next/Documentation/2020-01-17-13-59-21.bpo-39369.Bx5yE3.rst [new file with mode: 0644]

index 12b14d69332d72a08697002b08f44687ba65c2ed..1f3fbc340fc26762227e81044782704a2d299365 100644 (file)
@@ -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)
diff --git a/Misc/NEWS.d/next/Documentation/2020-01-17-13-59-21.bpo-39369.Bx5yE3.rst b/Misc/NEWS.d/next/Documentation/2020-01-17-13-59-21.bpo-39369.Bx5yE3.rst
new file mode 100644 (file)
index 0000000..7f41735
--- /dev/null
@@ -0,0 +1 @@
+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.
\ No newline at end of file