This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python »
  • 3.6.15 Documentation »
  • La bibliothèque standard »
  • |

31. Importer des modules¶

Les modules décrits dans ce chapitre fournissent de nouveaux moyens d’importer d’autres modules Python, et des hooks pour personnaliser le processus d’importation.

La liste complète des modules décrits dans ce chapitre est :

  • 31.1. zipimport — Importer des modules à partir d’archives Zip
    • 31.1.1. Objets zimporter
    • 31.1.2. Exemples
  • 31.2. pkgutil — Package extension utility
  • 31.3. modulefinder — Identifie les modules utilisés par un script
    • 31.3.1. Exemples d’utilisation de la classe ModuleFinder
  • 31.4. runpy — Locating and executing Python modules
  • 31.5. importlib — The implementation of import
    • 31.5.1. Introduction
    • 31.5.2. Fonctions
    • 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. Exemples
      • 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()

Sujet précédent

30.2. codeop — Compilation de code Python

Sujet suivant

31.1. zipimport — Importer des modules à partir d’archives Zip

Cette page

  • Signalement de bogue
  • Montrer le code source

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python »
  • 3.6.15 Documentation »
  • La bibliothèque standard »
  • |
© Copyright 2001-2021, Python Software Foundation.
La Python Software Foundation est une organisation à but non lucratif. Les dons sont bienvenus.
Mis à jour le déc. 29, 2021. Vous avez trouvé un bug ?
Créé via Sphinx 2.3.1.