importlib.machinery.EXTENSION_SUFFIXES

importlib.machinery.EXTENSION_SUFFIXES A list of strings representing the recognized file suffixes for extension modules. New in version 3.3.

importlib.machinery.ExtensionFileLoader.get_source()

get_source(fullname) Returns None as extension modules do not have source code.

importlib.machinery.ExtensionFileLoader.get_filename()

get_filename(fullname) Returns path. New in version 3.4.

importlib.machinery.ExtensionFileLoader.create_module()

create_module(spec) Creates the module object from the given specification in accordance with PEP 489. New in version 3.5.

importlib.machinery.ExtensionFileLoader.exec_module()

exec_module(module) Initializes the given module object in accordance with PEP 489. New in version 3.5.

importlib.machinery.ExtensionFileLoader.get_code()

get_code(fullname) Returns None as extension modules lack a code object.

importlib.machinery.DEBUG_BYTECODE_SUFFIXES

importlib.machinery.DEBUG_BYTECODE_SUFFIXES A list of strings representing the file suffixes for non-optimized bytecode modules. New in version 3.3. Deprecated since version 3.5: Use BYTECODE_SUFFIXES instead.

importlib.machinery.BYTECODE_SUFFIXES

importlib.machinery.BYTECODE_SUFFIXES A list of strings representing the recognized file suffixes for bytecode modules (including the leading dot). New in version 3.3. Changed in version 3.5: The value is no longer dependent on __debug__.

importlib.machinery.BuiltinImporter

class importlib.machinery.BuiltinImporter An importer for built-in modules. All known built-in modules are listed in sys.builtin_module_names. This class implements the importlib.abc.MetaPathFinder and importlib.abc.InspectLoader ABCs. Only class methods are defined by this class to alleviate the need for instantiation. Changed in version 3.5: As part of PEP 489, the builtin importer now implements Loader.create_module() and Loader.exec_module()

importlib.machinery.ExtensionFileLoader

class importlib.machinery.ExtensionFileLoader(fullname, path) A concrete implementation of importlib.abc.ExecutionLoader for extension modules. The fullname argument specifies the name of the module the loader is to support. The path argument is the path to the extension module’s file. New in version 3.3. name Name of the module the loader supports. path Path to the extension module. create_module(spec) Creates the module object from the given specification in accordance wit