{
    "content": [
        {
            "type": "text",
            "text": "# mmap (pydoc)\n\n**Summary:** mmap\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **CLASSES** (3 lines) — 1 subsections\n  - class mmap (87 lines)\n- **DATA** (33 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nmmap\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/mmap.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### CLASSES\n\nbuiltins.object\nmmap\n\n#### class mmap\n\n|  Windows: mmap(fileno, length[, tagname[, access[, offset]]])\n|\n|  Maps length bytes from the file specified by the file handle fileno,\n|  and returns a mmap object.  If length is larger than the current size\n|  of the file, the file is extended to contain length bytes.  If length\n|  is 0, the maximum length of the map is the current size of the file,\n|  except that if the file is empty Windows raises an exception (you cannot\n|  create an empty mapping on Windows).\n|\n|  Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]])\n|\n|  Maps length bytes from the file specified by the file descriptor fileno,\n|  and returns a mmap object.  If length is 0, the maximum length of the map\n|  will be the current size of the file when mmap is called.\n|  flags specifies the nature of the mapping. MAPPRIVATE creates a\n|  private copy-on-write mapping, so changes to the contents of the mmap\n|  object will be private to this process, and MAPSHARED creates a mapping\n|  that's shared with all other processes mapping the same areas of the file.\n|  The default value is MAPSHARED.\n|\n|  To map anonymous memory, pass -1 as the fileno (both versions).\n|\n|  Methods defined here:\n|\n|  delitem(self, key, /)\n|      Delete self[key].\n|\n|  enter(...)\n|\n|  exit(...)\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  getitem(self, key, /)\n|      Return self[key].\n|\n|  len(self, /)\n|      Return len(self).\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setitem(self, key, value, /)\n|      Set self[key] to value.\n|\n|  close(...)\n|\n|  find(...)\n|\n|  flush(...)\n|\n|  madvise(...)\n|\n|  move(...)\n|\n|  read(...)\n|\n|  readbyte(...)\n|\n|  readline(...)\n|\n|  resize(...)\n|\n|  rfind(...)\n|\n|  seek(...)\n|\n|  size(...)\n|\n|  tell(...)\n|\n|  write(...)\n|\n|  writebyte(...)\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  closed\n\n### DATA\n\nACCESSCOPY = 3\nACCESSDEFAULT = 0\nACCESSREAD = 1\nACCESSWRITE = 2\nALLOCATIONGRANULARITY = 4096\nMADVDODUMP = 17\nMADVDOFORK = 11\nMADVDONTDUMP = 16\nMADVDONTFORK = 10\nMADVDONTNEED = 4\nMADVFREE = 8\nMADVHUGEPAGE = 14\nMADVHWPOISON = 100\nMADVMERGEABLE = 12\nMADVNOHUGEPAGE = 15\nMADVNORMAL = 0\nMADVRANDOM = 1\nMADVREMOVE = 9\nMADVSEQUENTIAL = 2\nMADVUNMERGEABLE = 13\nMADVWILLNEED = 3\nMAPANON = 32\nMAPANONYMOUS = 32\nMAPDENYWRITE = 2048\nMAPEXECUTABLE = 4096\nMAPPOPULATE = 32768\nMAPPRIVATE = 2\nMAPSHARED = 1\nPAGESIZE = 4096\nPROTEXEC = 4\nPROTREAD = 1\nPROTWRITE = 2\n\n### FILE\n\n/usr/lib/python3.10/lib-dynload/mmap.cpython-310-x8664-linux-gnu.so\n\n"
        }
    ],
    "structuredContent": {
        "command": "mmap",
        "section": "",
        "mode": "pydoc",
        "summary": "mmap",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "class mmap",
                        "lines": 87
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}