Trees | Indices | Help |
|
---|
|
This module provides the components needed to build your own __import__ function. Undocumented functions are obsolete.
|
|||
NullImporter Null importer object |
|
|||
None |
|
||
|
|||
|
|||
string |
|
||
[(suffix, mode, type), ...] |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
module |
|
||
None |
|
|
|||
C_BUILTIN = 6
|
|||
C_EXTENSION = 3
|
|||
IMP_HOOK = 9
|
|||
PKG_DIRECTORY = 5
|
|||
PY_CODERESOURCE = 8
|
|||
PY_COMPILED = 2
|
|||
PY_FROZEN = 7
|
|||
PY_RESOURCE = 4
|
|||
PY_SOURCE = 1
|
|||
SEARCH_ERROR = 0
|
|
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(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__. |
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. |
Return True if the import lock is currently held, else False. On platforms without threads, return False.
|
Create a new module. Do not enter it in sys.modules. The module name must include the full package name, if any.
|
Release the interpreter's import lock. On platforms without threads, this function does nothing.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:41:00 2008 | http://epydoc.sourceforge.net |