Importing Modules — Python 3.11.16 documentation

docs.python.org

Tin mới

Operating System Utilities

Data marshalling support

Python Module Index

3.11.16 Documentation

Python/C API Reference Manual

importlib.machinery.SourceFileLoader

The module’s __spec__ and __loader__ will be set, if not set already, with the appropriate values. The spec’s loader will be set to the module’s __loader__ (if set) and to an instance of SourceFileLoader otherwise.

codeobject.co_filename

The module’s __spec__ and __loader__ will be set, if not set already, with the appropriate values. The spec’s loader will be set to the module’s __loader__ (if set) and to an instance of SourceFileLoader otherwise.

imp.source_from_cache()

Changed in version 3.3: Uses imp.source_from_cache() in calculating the source path if only the bytecode path is provided.

sys.path_importer_cache