Python imp Functions
EditRocket provides the following information on imp functions in the Python source code builder.
acquire_lock() - Acquires the interpreter's import lock for the current thread.
find_module(name[, path]) - Try to find the module name on the search path path.
get_magic() -
get_suffixes() - Return a list of triples, each describing a particular type of module.
init_builtin(name) - Initialize the built-in module called name and return its module object.
init_frozen(name) - Initialize the frozen module called name and return its module object.
is_builtin(name) - Return 1 if there is a built-in module called name which can be initialized again.
is_frozen(name) - Return True if there is a frozen module (see init_frozen()) called name, or False if there is no such module.
load_compiled(name, pathname, [file]) -
load_dynamic(name, pathname[, file]) - Load and initialize a module implemented as a dynamically loadable shared library and return its module object.
load_module(name, file, filename, description) - Load a module that was previously found by find_module() (or by an otherwise conducted search yielding compatible results).
load_source(name, pathname[, file]) - Load and initialize a module implemented as a Python source file and return its module object.
lock_held() - Return True if the import lock is currently held, else False.
new_module(name) - Return a new empty module object called name.
release_lock() - Release the interpreter's import lock.