PyDocs

Nav

Importing Modules

SourcelessFileLoader

importlib.machinery

class · Added in 3.3 (source)
  • SourcelessFileLoader(fullname, path)
Loader which handles sourceless file imports.
Changed in 3.15
  • 3.15: Removed the load_module() method.
Members of SourcelessFileLoader

g

get_code
Returns the code object for name created from path.
get_source
Return None as there is no source code.

i

is_package
Concrete implementation of InspectLoader.is_package by checking if the path returned by get_filename has a filename of '__init__.py'.

n

name
The name of the module the loader will handle.

p

path
The path to the bytecode file.
0 Examples
No examples for importlib.machinery/SourcelessFileLoader.
See Also
No see-alsos for importlib.machinery/SourcelessFileLoader
0 Notes
No notes for SourcelessFileLoader