This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 16.7. mmap — Memory-mapped file support¶ Memory-mapped file objects behave like both strings and like file objects. Unlike normal string objects, however, these are mutable. You can use mmap objects in most places where strings are expected