This document is for an old version of Python that is no longer supported. You should install the python3 and python3-doc packages and read the Python documentation for the Python3 version packaged in this release.

# 31. Importing Modules

The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.

The full list of modules described in this chapter is:

- 31.1. `imp` — Access the `import` internals
  - 31.1.1. Examples
- 31.2. `importlib` — Convenience wrappers for `__import__()`
- 31.3. `imputil` — Import utilities
  - 31.3.1. Examples
- 31.4. `zipimport` — Import modules from Zip archives
  - 31.4.1. zipimporter Objects
  - 31.4.2. Examples
- 31.5. `pkgutil` — Package extension utility
- 31.6. `modulefinder` — Find modules used by a script
  - 31.6.1. Example usage of `ModuleFinder`
- 31.7. `runpy` — Locating and executing Python modules