{
    "mode": "pydoc",
    "parameter": "_imp",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/_imp/json",
    "generated": "2026-06-02T13:19:39Z",
    "sections": {
        "NAME": {
            "content": "imp - (Extremely) low-level import machinery bits as used by importlib and imp.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "acquire_lock",
                    "content": "Acquires the interpreter's import lock for the current thread.\n\nThis lock should be used by import hooks to ensure thread-safety when importing\nmodules. On platforms without threads, this function does nothing.\n"
                },
                {
                    "name": "create_builtin",
                    "content": "Create an extension module.\n"
                },
                {
                    "name": "create_dynamic",
                    "content": "Create an extension module.\n"
                },
                {
                    "name": "exec_builtin",
                    "content": "Initialize a built-in module.\n"
                },
                {
                    "name": "exec_dynamic",
                    "content": "Initialize an extension module.\n"
                },
                {
                    "name": "extension_suffixes",
                    "content": "Returns the list of file suffixes used to identify extension modules.\n"
                },
                {
                    "name": "get_frozen_object",
                    "content": "Create a code object for a frozen module.\n"
                },
                {
                    "name": "init_frozen",
                    "content": "Initializes a frozen module.\n"
                },
                {
                    "name": "is_builtin",
                    "content": "Returns True if the module name corresponds to a built-in module.\n"
                },
                {
                    "name": "is_frozen",
                    "content": "Returns True if the module name corresponds to a frozen module.\n"
                },
                {
                    "name": "is_frozen_package",
                    "content": "Returns True if the module name is of a frozen package.\n"
                },
                {
                    "name": "lock_held",
                    "content": "Return True if the import lock is currently held, else False.\n\nOn platforms without threads, return False.\n"
                },
                {
                    "name": "release_lock",
                    "content": "Release the interpreter's import lock.\n\nOn platforms without threads, this function does nothing.\n"
                },
                {
                    "name": "source_hash",
                    "content": ""
                }
            ]
        },
        "DATA": {
            "content": "checkhashbasedpycs = 'default'\n",
            "subsections": []
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "imp - (Extremely) low-level import machinery bits as used by importlib and imp.",
    "flags": [],
    "examples": [],
    "see_also": []
}