| |
- acquire_lock(...)
- acquire_lock() -> None
Acquires the interpreter's import lock for the current thread.
This lock should be used by import hooks to ensure thread-safety
when importing modules.
On platforms without threads, this function does nothing.
- find_module(...)
- find_module(name, [path]) -> (file, filename, (suffix, mode, type))
Search for a module. If path is omitted or None, search for a
built-in, frozen or special module and continue search in sys.path.
The module name cannot contain '.'; to search for a submodule of a
package, pass the submodule name and the package's __path__.
- get_frozen_object(...)
- get_magic(...)
- get_magic() -> string
Return the magic number for .pyc or .pyo files.
- get_suffixes(...)
- get_suffixes() -> [(suffix, mode, type), ...]
Return a list of (suffix, mode, type) tuples describing the files
that find_module() looks for.
- init_builtin(...)
- init_frozen(...)
- is_builtin(...)
- is_frozen(...)
- load_compiled(...)
- load_dynamic(...)
- load_module(...)
- load_module(name, file, filename, (suffix, mode, type)) -> module
Load a module, given information returned by find_module().
The module name must include the full package name, if any.
- load_package(...)
- load_source(...)
- lock_held(...)
- lock_held() -> boolean
Return True if the import lock is currently held, else False.
On platforms without threads, return False.
- new_module(...)
- new_module(name) -> module
Create a new module. Do not enter it in sys.modules.
The module name must include the full package name, if any.
- release_lock(...)
- release_lock() -> None
Release the interpreter's import lock.
On platforms without threads, this function does nothing.
- reload(...)
- reload(module) -> module
Reload the module. The module must have been successfully imported before.
|