ActiveState homepage
docs.activestate.com
ActivePython 3.6.6 Documentation
  • Get ActivePython
      Release notes Windows installation Linux/Unix Installaton macOS Installation License
  • Get Started
      What's included Windows Linux/Unix macOS Package Reference Python 3.6.6 docs
  • Contact Us

31. Importing Modules — Python 3.6.6 documentation

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • en 3.6.6 Documentation »
  • The Python Standard Library »
  • |

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. zipimport — Import modules from Zip archives
    • 31.1.1. zipimporter Objects
    • 31.1.2. Examples
  • 31.2. pkgutil — Package extension utility
  • 31.3. modulefinder — Find modules used by a script
    • 31.3.1. Example usage of ModuleFinder
  • 31.4. runpy — Locating and executing Python modules
  • 31.5. importlib — The implementation of import
    • 31.5.1. Introduction
    • 31.5.2. Functions
    • 31.5.3. importlib.abc – Abstract base classes related to import
    • 31.5.4. importlib.machinery – Importers and path hooks
    • 31.5.5. importlib.util – Utility code for importers
    • 31.5.6. Examples
      • 31.5.6.1. Importing programmatically
      • 31.5.6.2. Checking if a module can be imported
      • 31.5.6.3. Importing a source file directly
      • 31.5.6.4. Setting up an importer
      • 31.5.6.5. Approximating importlib.import_module()

Previous topic

30.2. codeop — Compile Python code

Next topic

31.1. zipimport — Import modules from Zip archives

This Page

  • Report a Bug
  • Show Source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • en 3.6.6 Documentation »
  • The Python Standard Library »
  • |
© Copyright 2001-2018, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Jul 30, 2018. Found a bug?
Created using Sphinx 1.7.6.
Documentation built with Hugo using the Material theme.
ActiveState Platform   Downloads   Community   Code Recipes  
© 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.