Title: [patch] allow mmap take file offset as argument
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 2.5
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: chrisl, terry.reedy
Priority: normal Keywords:

Created on 2008-09-03 20:55 by chrisl, last changed 2010-06-17 00:44 by terry.reedy. This issue is now closed.

Messages (2)
msg72416 - (view) Author: Christopher Li (chrisl) Date: 2008-09-03 20:55
The os.mmap function does not take file offset as
requirement. As a result, if python want to mmap
a piece of the file data at the very end of the
file, it needs to mmap the every thing before that.

Without offset argument, it is hard to work with
large files.

I make a patch to add the offset arguments to mmap
function call a while back. I wish it get included
in the future version of python.

msg107971 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-06-17 00:44
This request is slightly confusing. The first sentence implies that you want offset to be a requirement (as opposed to being an option). That would not be acceptable. Later it seems that you want it added as an option (as opposed to not available). That seems sensible, and indeed, in 3.1, offset *is* an option (with a default of 0). So I am closing this as out-of-date (because fixed).

For future submissions, upload patches to the tracker as a file attached to the issue. The url you gave now gives 404 not found error.
Date User Action Args
2010-06-17 00:44:41terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg107971

resolution: out of date
2008-09-03 20:55:15chrislcreate