On this page
article
mmap — Memory-Mapped Files
Map files into memory.
Overview
Map files into memory.
Quick Example
mmap.mmap(f.fileno(), 0)
When to Use
Use this module when you need built-in support without adding third-party dependencies.
Common Tasks
- Read the official docs: docs.python.org/3/library/mmap.html
- Combine with related modules in the Cookbook
- Prefer stdlib before reaching for PyPI packages