Skip to content

Commit

Permalink
bpo-39369 Doc: Update mmap readline method documentation (GH-17957)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Pardim93 and blurb-it[bot] committed Feb 10, 2020
1 parent ed335cf commit 6c9974e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/mmap.rst
Expand Up @@ -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)
Expand Down
@@ -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.

0 comments on commit 6c9974e

Please sign in to comment.