importlib.machinery.WindowsRegistryFinder

class importlib.machinery.WindowsRegistryFinder Finder for modules declared in the Windows registry. This class implements the importlib.abc.Finder ABC. Only class methods are defined by this class to alleviate the need for instantiation. New in version 3.3.

importlib.machinery.SOURCE_SUFFIXES

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

importlib.machinery.SourcelessFileLoader.path

path The path to the bytecode file.

importlib.machinery.SourcelessFileLoader.name

name The name of the module the loader will handle.

importlib.machinery.SourcelessFileLoader.load_module()

load_module(name=None)

importlib.machinery.SourcelessFileLoader.is_package()

is_package(fullname) Determines if the module is a package based on path.

importlib.machinery.SourcelessFileLoader.get_source()

get_source(fullname) Returns None as bytecode files have no source when this loader is used.

importlib.machinery.SourcelessFileLoader.get_code()

get_code(fullname) Returns the code object for name created from path.

importlib.machinery.SourcelessFileLoader

class importlib.machinery.SourcelessFileLoader(fullname, path) A concrete implementation of importlib.abc.FileLoader which can import bytecode files (i.e. no source code files exist). Please note that direct use of bytecode files (and thus not source code files) inhibits your modules from being usable by all Python implementations or new versions of Python which change the bytecode format. New in version 3.3. name The name of the module the loader will handle. path The path to the

importlib.machinery.SourceFileLoader.set_data()

set_data(path, data) Concrete implementation of importlib.abc.SourceLoader.set_data().