I am working on a script in Python that maps a file for processing using mmap().
The tasks requires me to change the file\'s contents by
There is no way to shift contents of a file (be it mmap'ed or plain) without doing it explicitly. In the case of a mmap'ed file, you'll have to use the mmap.move method.