sturlamolden <sturlamol...@yahoo.no> writes: > On Jan 9, 6:41 pm, Sion Arrowsmith <si...@chiark.greenend.org.uk> > wrote: > >> You've snipped the bit further on in that sentence where the OP >> says that the file of interest is 2GB. Do you still want to try >> mmap'ing it? > > Python's mmap object does not take an offset parameter. If it did, one > could mmap smaller portions of the file.
As of 2.6 it does, but that might not be of much use if you're using 2.5.x or earlier. If you speak Python/C and really need offset, you could backport the mmap module from 2.6 and compile it under a different name for 2.5. -- http://mail.python.org/mailman/listinfo/python-list