{
    "content": [
        {
            "type": "text",
            "text": "# linecache (pydoc)\n\n**Summary:** linecache - Cache lines from Python source files.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **DESCRIPTION** (4 lines)\n- **FUNCTIONS** (1 lines) — 4 subsections\n  - checkcache (3 lines)\n  - clearcache (2 lines)\n  - getline (3 lines)\n  - lazycache (12 lines)\n- **DATA** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nlinecache - Cache lines from Python source files.\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/linecache.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### DESCRIPTION\n\nThis is intended to read lines from modules imported -- hence if a filename\nis not found, it will look down the module search path for a file by\nthat name.\n\n### FUNCTIONS\n\n#### checkcache\n\nDiscard cache entries that are out of date.\n(This is not checked upon each call!)\n\n#### clearcache\n\nClear the cache entirely.\n\n#### getline\n\nGet a line for a Python source file from the cache.\nUpdate the cache if it doesn't contain an entry for this file already.\n\n#### lazycache\n\nSeed the cache for filename with moduleglobals.\n\nThe module loader will be asked for the source only when getlines is\ncalled, not immediately.\n\nIf there is an entry in the cache already, it is not altered.\n\n:return: True if a lazy load is registered in the cache,\notherwise False. To register such a load a module loader with a\ngetsource method must be found, the filename must be a cacheable\nfilename, and the filename must not be already cached.\n\n### DATA\n\nall = ['getline', 'clearcache', 'checkcache', 'lazycache']\n\n### FILE\n\n/usr/lib/python3.10/linecache.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "linecache",
        "section": "",
        "mode": "pydoc",
        "summary": "linecache - Cache lines from Python source files.",
        "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": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "checkcache",
                        "lines": 3
                    },
                    {
                        "name": "clearcache",
                        "lines": 2
                    },
                    {
                        "name": "getline",
                        "lines": 3
                    },
                    {
                        "name": "lazycache",
                        "lines": 12
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}