Ce document est relatif à une vieille version de Python qui n'est plus soutenue. Mettez à jour votre version et lisez Bienvenue sur la documentation de la version stable actuelle de Python.

Navigation

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

Modules remplacés¶

Les modules documentés ici sont obsolètes et ne sont gardés que pour la rétro-compatibilité. Ils ont été remplacés par d'autres modules.

  • optparse --- Parser for command line options
    • Background
      • Terminology
      • What are options for?
      • What are positional arguments for?
    • Tutoriel
      • Understanding option actions
      • The store action
      • Handling boolean (flag) options
      • Other actions
      • Valeurs par défaut
      • Generating help
        • Grouping Options
      • Printing a version string
      • How optparse handles errors
      • Putting it all together
    • Reference Guide
      • Creating the parser
      • Populating the parser
      • Defining options
      • Option attributes
      • Standard option actions
      • Standard option types
      • Analyse des arguments
      • Querying and manipulating your option parser
      • Conflicts between options
      • Nettoyage
      • Other methods
    • Option Callbacks
      • Defining a callback option
      • How callbacks are called
      • Raising errors in a callback
      • Callback example 1: trivial callback
      • Callback example 2: check option order
      • Callback example 3: check option order (generalized)
      • Callback example 4: check arbitrary condition
      • Callback example 5: fixed arguments
      • Callback example 6: variable arguments
    • Extending optparse
      • Adding new types
      • Adding new actions
  • imp --- Access the import internals
    • Exemples

Sujet précédent

syslog --- Unix syslog library routines

Sujet suivant

optparse --- Parser for command line options

Cette page

  • Signalement de bogue
  • Montrer le code source

Navigation

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