💾 Archived View for tris.fyi › pydoc › importlib captured on 2023-04-26 at 13:30:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

importlib (package)

A pure Python implementation of import.

Functions

find_loader

find_loader(name, path=None)

  Return the loader for the specified module.

      This is a backward-compatible wrapper around find_spec().

      This function is deprecated in favor of importlib.util.find_spec().

    

import_module

import_module(name, package=None)

  Import a module.

      The 'package' argument is required when performing a relative import. It
      specifies the package to use as the anchor point from which to resolve the
      relative import to an absolute import.

    

invalidate_caches

invalidate_caches()

  Call the invalidate_caches() method on all meta path finders stored in
      sys.meta_path (where implemented).

reload

reload(module)

  Reload the module and return it.

      The module must have been successfully imported before.

    

Modules

abc

machinery

metadata

resources

sys

util

warnings