PyDocs

Nav

Python Runtime Services

meta_path

sys

data
A list of meta path finder objects that have their find_spec() methods called to see if one of the objects can find the module to be imported. By default, it holds entries that implement Python’s default import semantics. The find_spec() method is called with at least the absolute name of the module being imported. If the module to be imported is contained in a package, then the parent package’s __path__ attribute is passed in as a second argument. The method returns a module spec, or None if the module cannot be found.
Changed in 3.4, 3.12
  • 3.4: Module specs were introduced in Python 3.4, by PEP 451.
  • 3.12: Removed the fallback that looked for a find_module() method if a meta_path entry didn’t have a find_spec() method.
0 Examples
No examples for sys/meta_path.
See Also
No see-alsos for sys/meta_path
0 Notes
No notes for meta_path