PyDocs

Nav

Importing Modules

ExtensionFileLoader

importlib.machinery

class · Added in 3.3 (source)
  • ExtensionFileLoader(fullname, path)
Loader for extension modules.

The constructor is designed to work with FileFinder.
Changed in 3.12
  • 3.12: Multi-phase init is now required for use in subinterpreters.
Members of ExtensionFileLoader

c

create_module
Create an uninitialized extension module

e

exec_module
Initialize an extension module

g

get_code
Return None as an extension module cannot create a code object.
get_filename
Return the path to the source file as found by the finder.
get_source
Return None as extension modules have no source code.

i

is_package
Return True if the extension module is a package.

n

name
Name of the module the loader supports.

p

path
Path to the extension module.
0 Examples
No examples for importlib.machinery/ExtensionFileLoader.
See Also
No see-alsos for importlib.machinery/ExtensionFileLoader
0 Notes
No notes for ExtensionFileLoader