https://github.com/python/cpython/commit/e101f907dc827e3dc0bd3b08e4a0897d4a467430
commit: e101f907dc827e3dc0bd3b08e4a0897d4a467430
branch: main
author: AN Long <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-09-21T11:54:30+01:00
summary:

gh-138092: Correct the documented signature of ``mmap.flush`` (#138671)

files:
M Doc/library/mmap.rst

diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index d82dda9e54b150..bd3f7229bdaf70 100644
--- a/Doc/library/mmap.rst
+++ b/Doc/library/mmap.rst
@@ -212,7 +212,8 @@ To map anonymous memory, -1 should be passed as the fileno 
along with the length
          Writable :term:`bytes-like object` is now accepted.
 
 
-   .. method:: flush([offset[, size]])
+   .. method:: flush()
+               flush(offset, size, /)
 
       Flushes changes made to the in-memory copy of a file back to disk. 
Without
       use of this call there is no guarantee that changes are written back 
before

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to