Contenu de la documentation Python
**********************************

* Nouveautés de Python

  * Nouveautés de Python 2.7

    * The Future for Python 2.x

    * Changes to the Handling of Deprecation Warnings

    * Python 3.1 Features

    * PEP 372: Adding an Ordered Dictionary to collections

    * PEP 378: Format Specifier for Thousands Separator

    * PEP 389: The argparse Module for Parsing Command Lines

    * PEP 391: Dictionary-Based Configuration For Logging

    * PEP 3106: Dictionary Views

    * PEP 3137: The memoryview Object

    * Other Language Changes

      * Interpreter Changes

      * Optimizations

    * New and Improved Modules

      * New module: importlib

      * New module: sysconfig

      * ttk: Themed Widgets for Tk

      * Updated module: unittest

      * Module mis-à-jour : ElementTree 1.3

    * Build and C API Changes

      * Capsules

      * Port-Specific Changes: Windows

      * Port-Specific Changes: Mac OS X

      * Port-Specific Changes: FreeBSD

    * Autres changements et corrections

    * Portage vers Python 2.7

    * New Features Added to Python 2.7 Maintenance Releases

      * Two new environment variables for debug mode

      * PEP 434: IDLE Enhancement Exception for All Branches

      * PEP 466: Network Security Enhancements for Python 2.7

      * PEP 477: Backport ensurepip (PEP 453) to Python 2.7

        * Bootstrapping pip By Default

        * Documentation Changes

      * PEP 476: Enabling certificate verification by default for
        stdlib http clients

      * PEP 493: HTTPS verification migration tools for Python 2.7

      * New "make regen-all" build target

      * Removal of "make touch" build target

    * Remerciements

  * Nouveautés de Python 2.6

    * Python 3.0

    * Changes to the Development Process

      * New Issue Tracker: Roundup

      * New Documentation Format: reStructuredText Using Sphinx

    * PEP 343: The “with” statement

      * Écrire des gestionnaires de contexte

      * Le module *contextlib*

    * PEP 366: Explicit Relative Imports From a Main Module

    * PEP 370: Per-user "site-packages" Directory

    * PEP 371: The "multiprocessing" Package

    * PEP 3101: Advanced String Formatting

    * PEP 3105: "print" As a Function

    * PEP 3110: Exception-Handling Changes

    * PEP 3112: Byte Literals

    * PEP 3116: New I/O Library

    * PEP 3118: Revised Buffer Protocol

    * PEP 3119: Abstract Base Classes

    * PEP 3127: Integer Literal Support and Syntax

    * PEP 3129: Class Decorators

    * PEP 3141: A Type Hierarchy for Numbers

      * The "fractions" Module

    * Other Language Changes

      * Optimizations

      * Interpreter Changes

    * New and Improved Modules

      * The "ast" module

      * The "future_builtins" module

      * The "json" module: JavaScript Object Notation

      * The "plistlib" module: A Property-List Parser

      * ctypes Enhancements

      * Improved SSL Support

    * Deprecations and Removals

    * Build and C API Changes

      * Port-Specific Changes: Windows

      * Port-Specific Changes: Mac OS X

      * Port-Specific Changes: IRIX

    * Portage vers Python 2.6

    * Remerciements

  * Nouveautés de Python 2.5

    * PEP 308 : Expressions conditionnelles

    * PEP 309 : Application partielle de fonction

    * PEP 314: Metadata for Python Software Packages v1.1

    * PEP 328: Absolute and Relative Imports

    * PEP 338: Executing Modules as Scripts

    * PEP 341: Unified try/except/finally

    * PEP 342: New Generator Features

    * PEP 343: The “with” statement

      * Écrire des gestionnaires de contexte

      * Le module *contextlib*

    * PEP 352: Exceptions as New-Style Classes

    * PEP 353: Using ssize_t as the index type

    * PEP 357: The “__index__” method

    * Other Language Changes

      * Changements de l’interpréteur interactif

      * Optimizations

    * Modules ajoutés, modifiés, et supprimés

      * The ctypes package

      * The ElementTree package

      * The hashlib package

      * The sqlite3 package

      * The wsgiref package

    * Build and C API Changes

      * Port-Specific Changes

    * Portage vers Python 2.5

    * Remerciements

  * Nouveautés de Python 2.4

    * PEP 218: Built-In Set Objects

    * PEP 237: Unifying Long Integers and Integers

    * PEP 289: Generator Expressions

    * PEP 292: Simpler String Substitutions

    * PEP 318: Decorators for Functions and Methods

    * PEP 322: Reverse Iteration

    * PEP 324: New subprocess Module

    * PEP 327: Decimal Data Type

      * Why is Decimal needed?

      * The "Decimal" type

      * The "Context" type

    * PEP 328: Multi-line Imports

    * PEP 331: Locale-Independent Float/String Conversions

    * Other Language Changes

      * Optimizations

    * New, Improved, and Deprecated Modules

      * cookielib

      * doctest

    * Build and C API Changes

      * Port-Specific Changes

    * Portage vers Python 2.4

    * Remerciements

  * Nouveautés de Python 2.3

    * PEP 218: A Standard Set Datatype

    * PEP 255 : Générateurs simples

    * PEP 263: Source Code Encodings

    * PEP 273: Importing Modules from ZIP Archives

    * PEP 277: Unicode file name support for Windows NT

    * PEP 278: Universal Newline Support

    * PEP 279: enumerate()

    * PEP 282: The logging Package

    * PEP 285 : Un type booléen

    * PEP 293: Codec Error Handling Callbacks

    * PEP 301: Package Index and Metadata for Distutils

    * PEP 302: New Import Hooks

    * PEP 305: Comma-separated Files

    * PEP 307: Pickle Enhancements

    * Extended Slices

    * Other Language Changes

      * String Changes

      * Optimizations

    * New, Improved, and Deprecated Modules

      * Date/Time Type

      * The optparse Module

    * Pymalloc: A Specialized Object Allocator

    * Build and C API Changes

      * Port-Specific Changes

    * Autres changements et corrections

    * Portage vers Python 2.3

    * Remerciements

  * Nouveautés de Python 2.2

    * Introduction

    * PEP 252 et 253 : Changements concernant les types et classes

      * Anciennes et nouvelles classes

      * Descripteurs

      * Héritage multiple : la règle du diamant

      * Attribute Access

      * Related Links

    * PEP 234 : Itérateurs

    * PEP 255 : Générateurs simples

    * PEP 237: Unifying Long Integers and Integers

    * PEP 238: Changing the Division Operator

    * Unicode Changes

    * PEP 227: Nested Scopes

    * New and Improved Modules

    * Interpreter Changes and Fixes

    * Autres changements et corrections

    * Remerciements

  * Nouveautés de Python 2.1

    * Introduction

    * PEP 227: Nested Scopes

    * PEP 236 : Directives __future__

    * PEP 207: Rich Comparisons

    * PEP 230: Warning Framework

    * PEP 229: New Build System

    * PEP 205: Weak References

    * PEP 232 : Attributs de fonctions

    * PEP 235: Importing Modules on Case-Insensitive Platforms

    * PEP 217: Interactive Display Hook

    * PEP 208: New Coercion Model

    * PEP 241: Metadata in Python Packages

    * New and Improved Modules

    * Autres changements et corrections

    * Remerciements

  * Nouveautés de Python 2.0

    * Introduction

    * À propos de Python 1.6

    * Nouveau processus de développement

    * Unicode

    * Compréhensions de listes

    * Augmented Assignment

    * Méthodes de chaînes de caractères

    * Garbage Collection of Cycles

    * Other Core Changes

      * Changements mineurs du langage

      * Changements concernant les fonctions primitives

    * Porting to 2.0

    * Extending/Embedding Changes

    * Distutils: Making Modules Easy to Install

    * Modules XML

      * Support de SAX2

      * Support du DOM

      * Relationship to PyXML

    * Module changes

    * Nouveaux modules

    * IDLE Improvements

    * Deleted and Deprecated Modules

    * Remerciements

* Le tutoriel Python

  * 1. Mise en bouche

  * 2. Mode d’emploi de l’interpréteur Python

    * 2.1. Lancement de l’interpréteur

      * 2.1.1. Passage d’arguments

      * 2.1.2. Mode interactif

    * 2.2. L’interpréteur et son environnement

      * 2.2.1. Encodage du code source

  * 3. Introduction informelle à Python

    * 3.1. Utilisation de Python comme une calculatrice

      * 3.1.1. Les nombres

      * 3.1.2. Chaînes de caractères

      * 3.1.3. Chaînes Unicode

      * 3.1.4. Listes

    * 3.2. Premiers pas vers la programmation

  * 4. D’autres outils de contrôle de flux

    * 4.1. L’instruction "if"

    * 4.2. L’instruction "for"

    * 4.3. La fonction "range()"

    * 4.4. Les instructions "break", "continue" et les clauses
      "else" au sein des boucles

    * 4.5. L’instruction "pass"

    * 4.6. Définir des fonctions

    * 4.7. D’avantage sur la définition des fonctions

      * 4.7.1. Valeur par défaut des arguments

      * 4.7.2. Les arguments nommés

      * 4.7.3. Listes d’arguments arbitraires

      * 4.7.4. Séparation des listes d’arguments

      * 4.7.5. Fonctions anonymes

      * 4.7.6. Chaînes de documentation

    * 4.8. Aparté : le style de codage

  * 5. Structures de données

    * 5.1. Compléments sur les listes

      * 5.1.1. Utilisation des listes comme des piles

      * 5.1.2. Utilisation des listes comme des files

      * 5.1.3. Outils de programmation fonctionnelle

      * 5.1.4. Compréhensions de listes

        * 5.1.4.1. Compréhensions de listes imbriquées

    * 5.2. L’instruction "del"

    * 5.3. Tuples et séquences

    * 5.4. Ensembles

    * 5.5. Dictionnaires

    * 5.6. Techniques de boucles

    * 5.7. Plus d’informations sur les conditions

    * 5.8. Comparer des séquences avec d’autres types

  * 6. Modules

    * 6.1. Les modules en détail

      * 6.1.1. Exécuter des modules comme des scripts

      * 6.1.2. Les dossiers de recherche de modules

      * 6.1.3. Fichiers Python « compilés »

    * 6.2. Modules standards

    * 6.3. La fonction "dir()"

    * 6.4. Les paquets

      * 6.4.1. Importer * depuis un paquet

      * 6.4.2. Références internes dans un paquet

      * 6.4.3. Paquets dans plusieurs dossiers

  * 7. Les entrées/sorties

    * 7.1. Formatage de données

      * 7.1.1. Anciennes méthodes de formatage de chaînes

    * 7.2. Lecture et écriture de fichiers

      * 7.2.1. Méthodes des objets fichiers

      * 7.2.2. Sauvegarde de données structurées avec le module
        "json"

  * 8. Erreurs et exceptions

    * 8.1. Les erreurs de syntaxe

    * 8.2. Exceptions

    * 8.3. Gestion des exceptions

    * 8.4. Déclencher des exceptions

    * 8.5. Exceptions définies par l’utilisateur

    * 8.6. Définition d’actions de nettoyage

    * 8.7. Actions de nettoyage prédéfinies

  * 9. Classes

    * 9.1. Objets et noms : préambule

    * 9.2. Portées et espaces de noms en Python

    * 9.3. Une première approche des classes

      * 9.3.1. Syntaxe de définition des classes

      * 9.3.2. Objets classes

      * 9.3.3. Objets instances

      * 9.3.4. Objets méthode

      * 9.3.5. Classes et variables d’instance

    * 9.4. Remarques diverses

    * 9.5. Héritage

      * 9.5.1. Héritage multiple

    * 9.6. Variables privées et références locales aux classes

    * 9.7. Trucs et astuces

    * 9.8. Les exceptions sont aussi des classes

    * 9.9. Itérateurs

    * 9.10. Générateurs

    * 9.11. Expressions et générateurs

  * 10. Survol de la bibliothèque standard

    * 10.1. Interface avec le système d’exploitation

    * 10.2. Jokers sur les noms de fichiers

    * 10.3. Paramètres passés en ligne de commande

    * 10.4. Redirection de la sortie d’erreur et fin d’exécution

    * 10.5. Recherche de motifs dans les chaînes

    * 10.6. Mathématiques

    * 10.7. Accès à internet

    * 10.8. Dates et heures

    * 10.9. Compression de données

    * 10.10. Mesure des performances

    * 10.11. Contrôle qualité

    * 10.12. Piles fournies

  * 11. Brief Tour of the Standard Library — Part II

    * 11.1. Formatage de l’affichage

    * 11.2. Gabarits (Templates)

    * 11.3. Traitement des données binaires

    * 11.4. Fils d’exécution

    * 11.5. Journalisation

    * 11.6. Références faibles

    * 11.7. Outils pour les listes

    * 11.8. Arithmétique décimale à virgule flottante

  * 12. Pour aller plus loin

  * 13. Édition interactive des entrées et substitution d’historique

    * 13.1. Édition de ligne

    * 13.2. Substitution d’historique

    * 13.3. Raccourcis clavier

    * 13.4. Alternatives à l’interpréteur interactif

  * 14. Arithmétique en nombres à virgule flottante : problèmes et
    limites

    * 14.1. Erreurs de représentation

  * 15. Annexe

    * 15.1. Mode interactif

      * 15.1.1. Gestion des erreurs

      * 15.1.2. Scripts Python exécutables

      * 15.1.3. Configuration du mode interactif

      * 15.1.4. Modules de personnalisation

* Installation et utilisation de Python

  * 1. Ligne de commande et environnement

    * 1.1. Ligne de commande

      * 1.1.1. Options de l’interface

      * 1.1.2. Options génériques

      * 1.1.3. Options diverses

      * 1.1.4. Options à ne pas utiliser

    * 1.2. Variables d’environnement

      * 1.2.1. Variables en mode débogage

  * 2. Using Python on Unix platforms

    * 2.1. Getting and installing the latest version of Python

      * 2.1.1. On Linux

      * 2.1.2. On FreeBSD and OpenBSD

      * 2.1.3. On OpenSolaris

    * 2.2. Building Python

    * 2.3. Python-related paths and files

    * 2.4. Miscellaneous

    * 2.5. Editors and IDEs

  * 3. Utiliser Python sur Windows

    * 3.1. Installer Python

    * 3.2. Alternative bundles

    * 3.3. Configuring Python

      * 3.3.1. Excursus: Setting environment variables

      * 3.3.2. Trouver l’exécutable Python

      * 3.3.3. Finding modules

      * 3.3.4. Executing scripts

    * 3.4. Additional modules

      * 3.4.1. PyWin32

      * 3.4.2. Py2exe

      * 3.4.3. WConio

    * 3.5. Compiler Python sous Windows

    * 3.6. Autres ressources

  * 4. Utilisation de Python sur un Macintosh

    * 4.1. Obtenir et installer MacPython

      * 4.1.1. How to run a Python script

      * 4.1.2. Running scripts with a GUI

      * 4.1.3. Configuration

    * 4.2. The IDE

    * 4.3. Installing Additional Python Packages

    * 4.4. GUI Programming on the Mac

    * 4.5. Distributing Python Applications on the Mac

    * 4.6. Autres ressources

* La référence du langage Python

  * 1. Introduction

    * 1.1. Autres implémentations

    * 1.2. Notations

  * 2. Analyse lexicale

    * 2.1. Structure des lignes

      * 2.1.1. Lignes logiques

      * 2.1.2. Lignes physiques

      * 2.1.3. Commentaires

      * 2.1.4. Déclaration d’encodage

      * 2.1.5. Continuation de ligne explicite

      * 2.1.6. Continuation de ligne implicite

      * 2.1.7. Lignes vierges

      * 2.1.8. Indentation

      * 2.1.9. Espaces entre lexèmes

    * 2.2. Autres lexèmes

    * 2.3. Identifiants et mots-clés

      * 2.3.1. Mots-clés

      * 2.3.2. Classes réservées pour les identifiants

    * 2.4. Littéraux

      * 2.4.1. String literals

      * 2.4.2. Concaténation de chaînes de caractères

      * 2.4.3. Littéraux numériques

      * 2.4.4. Integer and long integer literals

      * 2.4.5. Nombres à virgule flottante littéraux

      * 2.4.6. Imaginaires littéraux

    * 2.5. Opérateurs

    * 2.6. Délimiteurs

  * 3. Modèle de données

    * 3.1. Objets, valeurs et types

    * 3.2. Hiérarchie des types standards

    * 3.3. New-style and classic classes

    * 3.4. Méthodes spéciales

      * 3.4.1. Personnalisation de base

      * 3.4.2. Personnalisation de l’accès aux attributs

        * 3.4.2.1. More attribute access for new-style classes

        * 3.4.2.2. Implémentation de descripteurs

        * 3.4.2.3. Invocation des descripteurs

        * 3.4.2.4. "__slots__"

      * 3.4.3. Personnalisation de la création de classes

      * 3.4.4. Personnalisation des instances et vérification des
        sous-classes

      * 3.4.5. Émulation d’objets appelables

      * 3.4.6. Émulation de types conteneurs

      * 3.4.7. Additional methods for emulation of sequence types

      * 3.4.8. Émulation de types numériques

      * 3.4.9. Coercion rules

      * 3.4.10. Gestionnaire de contexte With

      * 3.4.11. Special method lookup for old-style classes

      * 3.4.12. Special method lookup for new-style classes

  * 4. Modèle d’exécution

    * 4.1. Noms et liaisons

      * 4.1.1. Interaction avec les fonctionnalités dynamiques

    * 4.2. Exceptions

  * 5. Expressions

    * 5.1. Conversions arithmétiques

    * 5.2. Atomes

      * 5.2.1. Identifiants (noms)

      * 5.2.2. Littéraux

      * 5.2.3. Formes parenthésées

      * 5.2.4. Agencements de listes

      * 5.2.5. Displays for sets and dictionaries

      * 5.2.6. Générateurs (expressions)

      * 5.2.7. Agencements de dictionnaires

      * 5.2.8. Agencements d’ensembles

      * 5.2.9. String conversions

      * 5.2.10. Expressions "yield"

        * 5.2.10.1. Méthodes des générateurs-itérateurs

    * 5.3. Primaires

      * 5.3.1. Références à des attributs

      * 5.3.2. Sélections

      * 5.3.3. Tranches

      * 5.3.4. Appels

    * 5.4. L’opérateur puissance

    * 5.5. Arithmétique unaire et opérations sur les bits

    * 5.6. Opérations arithmétiques binaires

    * 5.7. Opérations de décalage

    * 5.8. Opérations binaires bit à bit

    * 5.9. Comparaisons

      * 5.9.1. Value comparisons

      * 5.9.2. Membership test operations

      * 5.9.3. Identity comparisons

    * 5.10. Opérations booléennes

    * 5.11. Conditional Expressions

    * 5.12. Expressions lambda

    * 5.13. Listes d’expressions

    * 5.14. Ordre d’évaluation

    * 5.15. Priorités des opérateurs

  * 6. Les instructions simples

    * 6.1. Les expressions

    * 6.2. Les assignations

      * 6.2.1. Les assignations augmentées

    * 6.3. L’instruction "assert"

    * 6.4. L’instruction  "pass"

    * 6.5. L’instruction "del"

    * 6.6. The "print" statement

    * 6.7. L’instruction "return"

    * 6.8. L’instruction "yield"

    * 6.9. L’instruction "raise"

    * 6.10. L’instruction "break"

    * 6.11. L’instruction "continue"

    * 6.12. L’instruction "import"

      * 6.12.1. L’instruction future

    * 6.13. L’instruction "global"

    * 6.14. The "exec" statement

  * 7. Instructions composées

    * 7.1. L’instruction "if"

    * 7.2. L’instruction "while"

    * 7.3. L’instruction "for"

    * 7.4. L’instruction "try"

    * 7.5. L’instruction "with"

    * 7.6. Définition de fonctions

    * 7.7. Définition de classes

  * 8. Composants de plus haut niveau

    * 8.1. Programmes Python complets

    * 8.2. Fichier d’entrée

    * 8.3. Entrée interactive

    * 8.4. Entrée d’expression

  * 9. Spécification complète de la grammaire

* La bibliothèque standard

  * 1. Introduction

  * 2. Fonctions natives

  * 3. Non-essential Built-in Functions

  * 4. Constantes natives

    * 4.1. Constantes ajoutées par le module "site"

  * 5. Types natifs

    * 5.1. Valeurs booléennes

    * 5.2. Opérations booléennes — "and", "or", "not"

    * 5.3. Comparaisons

    * 5.4. Numeric Types — "int", "float", "long", "complex"

      * 5.4.1. Opérations sur les bits des nombres entiers

      * 5.4.2. Méthodes supplémentaires sur les entiers

      * 5.4.3. Méthodes supplémentaires sur les nombres à virgule
        flottante

    * 5.5. Les types itérateurs

      * 5.5.1. Types générateurs

    * 5.6. Sequence Types — "str", "unicode", "list", "tuple",
      "bytearray", "buffer", "xrange"

      * 5.6.1. Méthodes de chaînes de caractères

      * 5.6.2. String Formatting Operations

      * 5.6.3. XRange Type

      * 5.6.4. Types de séquences muables

    * 5.7. Types d’ensembles — "set", "frozenset"

    * 5.8. Les types de correspondances — "dict"

      * 5.8.1. Les vues de dictionnaires

    * 5.9. Objets fichiers

    * 5.10. memoryview type

    * 5.11. Le type gestionnaire de contexte

    * 5.12. Autres types natifs

      * 5.12.1. Modules

      * 5.12.2. Les classes et instances de classes

      * 5.12.3. Fonctions

      * 5.12.4. Méthodes

      * 5.12.5. Objets code

      * 5.12.6. Objets type

      * 5.12.7. L’objet Null

      * 5.12.8. L’objet points de suspension

      * 5.12.9. L’objet *NotImplemented*

      * 5.12.10. Valeurs Booléennes

      * 5.12.11. Objets Internes

    * 5.13. Attributs Spéciaux

  * 6. Exceptions natives

    * 6.1. Hiérarchie des exceptions

  * 7. String Services

    * 7.1. "string" — Opérations usuelles sur des chaînes

      * 7.1.1. Chaînes constantes

      * 7.1.2. Formatage personnalisé de chaîne

      * 7.1.3. Syntaxe de formatage de chaîne

        * 7.1.3.1. Mini-langage de spécification de format

        * 7.1.3.2. Exemples de formats

      * 7.1.4. Chaînes modèles

      * 7.1.5. String functions

      * 7.1.6. Deprecated string functions

    * 7.2. "re" — Opérations à base d’expressions rationnelles

      * 7.2.1. Syntaxe des expressions rationnelles

      * 7.2.2. Contenu du module

      * 7.2.3. Objets d’expressions rationnelles

      * 7.2.4. Objets de correspondance

      * 7.2.5. Exemples

        * 7.2.5.1. Checking For a Pair

        * 7.2.5.2. Simuler *scanf()*

        * 7.2.5.3. search() vs. match()

        * 7.2.5.4. Construire un répertoire téléphonique

        * 7.2.5.5. Mélanger les lettres des mots

        * 7.2.5.6. Trouver tous les adverbes

        * 7.2.5.7. Trouver tous les adverbes et leurs positions

        * 7.2.5.8. Notation brutes de chaînes

    * 7.3. "struct" — Interpret strings as packed binary data

      * 7.3.1. Functions and Exceptions

      * 7.3.2. Format Strings

        * 7.3.2.1. Byte Order, Size, and Alignment

        * 7.3.2.2. Format Characters

        * 7.3.2.3. Exemples

      * 7.3.3. Classes

    * 7.4. "difflib" — Helpers for computing deltas

      * 7.4.1. SequenceMatcher Objects

      * 7.4.2. SequenceMatcher Examples

      * 7.4.3. Differ Objects

      * 7.4.4. Differ Example

      * 7.4.5. A command-line interface to difflib

    * 7.5. "StringIO" — Read and write strings as files

    * 7.6. "cStringIO" — Faster version of "StringIO"

    * 7.7. "textwrap" — Text wrapping and filling

    * 7.8. "codecs" — Codec registry and base classes

      * 7.8.1. Codec Base Classes

        * 7.8.1.1. Codec Objects

        * 7.8.1.2. IncrementalEncoder Objects

        * 7.8.1.3. IncrementalDecoder Objects

        * 7.8.1.4. StreamWriter Objects

        * 7.8.1.5. StreamReader Objects

        * 7.8.1.6. StreamReaderWriter Objects

        * 7.8.1.7. StreamRecoder Objects

      * 7.8.2. Encodings and Unicode

      * 7.8.3. Standard Encodings

      * 7.8.4. Python Specific Encodings

      * 7.8.5. "encodings.idna" — Internationalized Domain Names in
        Applications

      * 7.8.6. "encodings.utf_8_sig" — UTF-8 codec with BOM
        signature

    * 7.9. "unicodedata" — Base de données Unicode

    * 7.10. "stringprep" — Internet String Preparation

    * 7.11. "fpformat" — Floating point conversions

  * 8. Types de données

    * 8.1. "datetime" — Types de base pour la date et l’heure

      * 8.1.1. Types disponibles

      * 8.1.2. Objets "timedelta"

      * 8.1.3. Objets "date"

      * 8.1.4. Objets "datetime"

      * 8.1.5. "time" Objects

      * 8.1.6. Objets "tzinfo"

      * 8.1.7. Comportement de "strftime()" et "strptime()"

    * 8.2. "calendar" — General calendar-related functions

    * 8.3. "collections" — High-performance container datatypes

      * 8.3.1. Objets "Counter"

      * 8.3.2. Objets "deque"

        * 8.3.2.1. Cas pratiques utilisant "deque"

      * 8.3.3. Objets "defaultdict"

        * 8.3.3.1. Exemples utilisant "defaultdict"

      * 8.3.4. "namedtuple()": fonction de construction pour
        *n-uplets* (*tuples*) avec des champs nommés

      * 8.3.5. Objets "OrderedDict"

        * 8.3.5.1. Exemples et cas pratiques utilisant "OrderDict"

      * 8.3.6. Classes de base abstraites de collections

    * 8.4. "heapq" — Heap queue algorithm

      * 8.4.1. Basic Examples

      * 8.4.2. Priority Queue Implementation Notes

      * 8.4.3. Theory

    * 8.5. "bisect" — Algorithme de bissection de listes

      * 8.5.1. Chercher dans des listes triées

      * 8.5.2. Autres Exemples

    * 8.6. "array" — Tableaux efficaces de valeurs numériques

    * 8.7. "sets" — Unordered collections of unique elements

      * 8.7.1. Set Objects

      * 8.7.2. Exemple

      * 8.7.3. Protocol for automatic conversion to immutable

      * 8.7.4. Comparison to the built-in "set" types

    * 8.8. "sched" — Event scheduler

      * 8.8.1. Scheduler Objects

    * 8.9. "mutex" — Mutual exclusion support

      * 8.9.1. Mutex Objects

    * 8.10. "Queue" — A synchronized queue class

      * 8.10.1. Objets "Queue"

    * 8.11. "weakref" — Weak references

      * 8.11.1. Weak Reference Objects

      * 8.11.2. Exemple

    * 8.12. "UserDict" — Class wrapper for dictionary objects

    * 8.13. "UserList" — Class wrapper for list objects

    * 8.14. "UserString" — Class wrapper for string objects

    * 8.15. "types" — Names for built-in types

    * 8.16. "new" — Creation of runtime internal objects

    * 8.17. "copy" — Opérations de copie superficielle et récursive

    * 8.18. "pprint" — Data pretty printer

      * 8.18.1. PrettyPrinter Objects

      * 8.18.2. pprint Example

    * 8.19. "repr" — Alternate "repr()" implementation

      * 8.19.1. Repr Objects

      * 8.19.2. Subclassing Repr Objects

  * 9. Modules numériques et mathématiques

    * 9.1. "numbers" — Numeric abstract base classes

      * 9.1.1. The numeric tower

      * 9.1.2. Notes for type implementors

        * 9.1.2.1. Adding More Numeric ABCs

        * 9.1.2.2. Implementing the arithmetic operations

    * 9.2. Fonctions mathématiques — "math"

      * 9.2.1. Fonctions arithmétiques et de représentation

      * 9.2.2. Fonctions logarithme et exponentielle

      * 9.2.3. Fonctions trigonométriques

      * 9.2.4. Conversion angulaire

      * 9.2.5. Fonctions hyperboliques

      * 9.2.6. Fonctions spéciales

      * 9.2.7. Constantes

    * 9.3. Fonctions mathématiques pour nombres complexes — "cmath"

      * 9.3.1. Conversion vers et à partir de coordonnées polaires

      * 9.3.2. Fonctions logarithme et exponentielle

      * 9.3.3. Fonctions trigonométriques

      * 9.3.4. Fonctions hyperboliques

      * 9.3.5. Fonctions de classifications

      * 9.3.6. Constantes

    * 9.4. "decimal" — Arithmétique décimale en virgule fixe et
      flottante

      * 9.4.1. Introduction pratique

      * 9.4.2. Les objets Decimal

        * 9.4.2.1. Logical operands

      * 9.4.3. Context objects

      * 9.4.4. Signals

      * 9.4.5. Floating Point Notes

        * 9.4.5.1. Mitigating round-off error with increased
          precision

        * 9.4.5.2. Special values

      * 9.4.6. Working with threads

      * 9.4.7. Cas pratiques

      * 9.4.8. FAQ *decimal*

    * 9.5. "fractions" — Nombres rationnels

    * 9.6. "random" — Generate pseudo-random numbers

    * 9.7. "itertools" — Fonctions créant des itérateurs pour
      boucler efficacement.

      * 9.7.1. Fonctions d”*itertool*

      * 9.7.2. Cas pratiques

    * 9.8. "functools" — Fonctions de haut niveau et opérations sur
      des objets appelables

      * 9.8.1. Objets "partial"

    * 9.9. "operator" — Standard operators as functions

      * 9.9.1. Mapping Operators to Functions

  * 10. Accès aux Fichiers et aux Dossiers

    * 10.1. "os.path" — Common pathname manipulations

    * 10.2. "fileinput" — Iterate over lines from multiple input
      streams

    * 10.3. "stat" — Interpreting "stat()" results

    * 10.4. "statvfs" — Constants used with "os.statvfs()"

    * 10.5. "filecmp" — File and Directory Comparisons

      * 10.5.1. The "dircmp" class

    * 10.6. "tempfile" — Generate temporary files and directories

    * 10.7. "glob" — Recherche de chemins de style Unix selon
      certains motifs

    * 10.8. "fnmatch" — Filtrage par motif des noms de fichiers Unix

    * 10.9. "linecache" — Accès direct aux lignes d’un texte

    * 10.10. "shutil" — High-level file operations

      * 10.10.1. Directory and files operations

        * 10.10.1.1. copytree example

      * 10.10.2. Archiving operations

        * 10.10.2.1. Archiving example

    * 10.11. "dircache" — Cached directory listings

    * 10.12. "macpath" — Fonctions de manipulation de chemins pour
      Mac OS 9

  * 11. Persistance des données

    * 11.1. "pickle" — Python object serialization

      * 11.1.1. Relationship to other Python modules

      * 11.1.2. Data stream format

      * 11.1.3. Usage

      * 11.1.4. What can be pickled and unpickled?

      * 11.1.5. The pickle protocol

        * 11.1.5.1. Pickling and unpickling normal class instances

        * 11.1.5.2. Pickling and unpickling extension types

        * 11.1.5.3. Pickling and unpickling external objects

      * 11.1.6. Subclassing Unpicklers

      * 11.1.7. Exemple

    * 11.2. "cPickle" — A faster "pickle"

    * 11.3. "copy_reg" — Register "pickle" support functions

      * 11.3.1. Exemple

    * 11.4. "shelve" — Objet Python persistant

      * 11.4.1. Limites

      * 11.4.2. Exemple

    * 11.5. "marshal" — Internal Python object serialization

    * 11.6. "anydbm" — Generic access to DBM-style databases

    * 11.7. "whichdb" — Guess which DBM module created a database

    * 11.8. "dbm" — Simple « database » interface

    * 11.9. "gdbm" — GNU’s reinterpretation of dbm

    * 11.10. "dbhash" — DBM-style interface to the BSD database
      library

      * 11.10.1. Database Objects

    * 11.11. "bsddb" — Interface to Berkeley DB library

      * 11.11.1. Hash, BTree and Record Objects

    * 11.12. "dumbdbm" — Portable DBM implementation

      * 11.12.1. Dumbdbm Objects

    * 11.13. "sqlite3" — DB-API 2.0 interface for SQLite databases

      * 11.13.1. Module functions and constants

      * 11.13.2. Connection Objects

      * 11.13.3. Cursor Objects

      * 11.13.4. Row Objects

      * 11.13.5. SQLite and Python types

        * 11.13.5.1. Introduction

        * 11.13.5.2. Using adapters to store additional Python types
          in SQLite databases

          * 11.13.5.2.1. Letting your object adapt itself

          * 11.13.5.2.2. Registering an adapter callable

        * 11.13.5.3. Converting SQLite values to custom Python types

        * 11.13.5.4. Default adapters and converters

      * 11.13.6. Controlling Transactions

      * 11.13.7. Using "sqlite3" efficiently

        * 11.13.7.1. Using shortcut methods

        * 11.13.7.2. Accessing columns by name instead of by index

        * 11.13.7.3. Using the connection as a context manager

      * 11.13.8. Common issues

        * 11.13.8.1. Fils d’exécution

  * 12. Compression de donnée et archivage

    * 12.1. "zlib" — Compression compatible avec **gzip**

    * 12.2. "gzip" — Support pour les fichiers **gzip**

      * 12.2.1. Exemples d’utilisation

    * 12.3. "bz2" — Compression compatible with **bzip2**

      * 12.3.1. (Dé)compression de fichiers

      * 12.3.2. Sequential (de)compression

      * 12.3.3. (Dé)compression en une fois

    * 12.4. "zipfile" — Work with ZIP archives

      * 12.4.1. ZipFile Objects

      * 12.4.2. PyZipFile Objects

      * 12.4.3. ZipInfo Objects

      * 12.4.4. Command-Line Interface

        * 12.4.4.1. Command-line options

    * 12.5. "tarfile" — Read and write tar archive files

      * 12.5.1. TarFile Objects

      * 12.5.2. TarInfo Objects

      * 12.5.3. Exemples

      * 12.5.4. Supported tar formats

      * 12.5.5. Unicode issues

  * 13. Formats de fichiers

    * 13.1. "csv" — Lecture et écriture de fichiers CSV

      * 13.1.1. Contenu du module

      * 13.1.2. Dialectes et paramètres de formatage

      * 13.1.3. Objets lecteurs

      * 13.1.4. Objets transcripteurs

      * 13.1.5. Exemples

    * 13.2. "ConfigParser" — Configuration file parser

      * 13.2.1. RawConfigParser Objects

      * 13.2.2. ConfigParser Objects

      * 13.2.3. SafeConfigParser Objects

      * 13.2.4. Exemples

    * 13.3. "robotparser" —  Parser for robots.txt

    * 13.4. "netrc" — traitement de fichier *netrc*

      * 13.4.1. Objets *netrc*

    * 13.5. "xdrlib" — Encode and decode XDR data

      * 13.5.1. Packer Objects

      * 13.5.2. Unpacker Objects

      * 13.5.3. Exceptions

    * 13.6. "plistlib" — Generate and parse Mac OS X ".plist" files

      * 13.6.1. Exemples

  * 14. Service de cryptographie

    * 14.1. "hashlib" — Secure hashes and message digests

      * 14.1.1. Key derivation

    * 14.2. "hmac" — Keyed-Hashing for Message Authentication

    * 14.3. "md5" — MD5 message digest algorithm

    * 14.4. "sha" — SHA-1 message digest algorithm

  * 15. Services génériques du système d’exploitation

    * 15.1. "os" — Diverses interfaces pour le système
      d’exploitation

      * 15.1.1. Paramètres de processus

      * 15.1.2. Création de fichiers objets

      * 15.1.3. Opérations sur les descripteurs de fichiers

        * 15.1.3.1. "open()" flag constants

      * 15.1.4. Fichiers et répertoires

      * 15.1.5. Gestion des processus

      * 15.1.6. Diverses informations sur le système

      * 15.1.7. Diverses fonctions

    * 15.2. "io" — Core tools for working with streams

      * 15.2.1. Module Interface

      * 15.2.2. I/O Base Classes

      * 15.2.3. Raw File I/O

      * 15.2.4. Buffered Streams

      * 15.2.5. Text I/O

      * 15.2.6. Advanced topics

        * 15.2.6.1. Performance

          * 15.2.6.1.1. Binary I/O

          * 15.2.6.1.2. Text I/O

        * 15.2.6.2. Fils d’exécution

        * 15.2.6.3. Reentrancy

    * 15.3. "time" — Time access and conversions

    * 15.4. "argparse" – Parseur d’arguments, d’options, et de sous-
      commandes de ligne de commande

      * 15.4.1. Exemple

        * 15.4.1.1. Créer un analyseur (*parser* en anglais)

        * 15.4.1.2. Ajouter des arguments

        * 15.4.1.3. Analyse des arguments

      * 15.4.2. Objets ArgumentParser

        * 15.4.2.1. prog

        * 15.4.2.2. usage

        * 15.4.2.3. description

        * 15.4.2.4. epilog

        * 15.4.2.5. parents

        * 15.4.2.6. formatter_class

        * 15.4.2.7. prefix_chars

        * 15.4.2.8. fromfile_prefix_chars

        * 15.4.2.9. argument_default

        * 15.4.2.10. conflict_handler

        * 15.4.2.11. add_help

      * 15.4.3. La méthode *add_argument()*

        * 15.4.3.1. nom ou option

        * 15.4.3.2. action

        * 15.4.3.3. nargs

        * 15.4.3.4. const

        * 15.4.3.5. default

        * 15.4.3.6. type

        * 15.4.3.7. choices

        * 15.4.3.8. required

        * 15.4.3.9. help

        * 15.4.3.10. metavar

        * 15.4.3.11. dest

        * 15.4.3.12. Classes Action

      * 15.4.4. La méthode *parse_args()*

        * 15.4.4.1. Option value syntax

        * 15.4.4.2. Arguments invalides

        * 15.4.4.3. Arguments contenant "-"

        * 15.4.4.4. Arguments abrégés (Part comparaison de leur
          préfixes)

        * 15.4.4.5. Au delà de "sys.argv"

        * 15.4.4.6. L’objet namespace

      * 15.4.5. Autres outils

        * 15.4.5.1. Sous commandes

        * 15.4.5.2. Objets "FileType"

        * 15.4.5.3. Groupes d’arguments

        * 15.4.5.4. Exclusion mutuelle

        * 15.4.5.5. Valeurs par défaut de l’analyseur

        * 15.4.5.6. Afficher l’aide

        * 15.4.5.7. *Parsing* partiel

        * 15.4.5.8. Personnaliser le *parsing* de fichiers

        * 15.4.5.9. Exiting methods

      * 15.4.6. Mettre à jour du code "optparse"

    * 15.5. "optparse" — Parser for command line options

      * 15.5.1. Background

        * 15.5.1.1. Terminology

        * 15.5.1.2. What are options for?

        * 15.5.1.3. What are positional arguments for?

      * 15.5.2. Tutoriel

        * 15.5.2.1. Understanding option actions

        * 15.5.2.2. The store action

        * 15.5.2.3. Handling boolean (flag) options

        * 15.5.2.4. Other actions

        * 15.5.2.5. Valeurs par défaut

        * 15.5.2.6. Generating help

          * 15.5.2.6.1. Grouping Options

        * 15.5.2.7. Printing a version string

        * 15.5.2.8. How "optparse" handles errors

        * 15.5.2.9. Putting it all together

      * 15.5.3. Reference Guide

        * 15.5.3.1. Creating the parser

        * 15.5.3.2. Populating the parser

        * 15.5.3.3. Defining options

        * 15.5.3.4. Option attributes

        * 15.5.3.5. Standard option actions

        * 15.5.3.6. Standard option types

        * 15.5.3.7. Analyse des arguments

        * 15.5.3.8. Querying and manipulating your option parser

        * 15.5.3.9. Conflicts between options

        * 15.5.3.10. Cleanup

        * 15.5.3.11. Other methods

      * 15.5.4. Option Callbacks

        * 15.5.4.1. Defining a callback option

        * 15.5.4.2. How callbacks are called

        * 15.5.4.3. Raising errors in a callback

        * 15.5.4.4. Callback example 1: trivial callback

        * 15.5.4.5. Callback example 2: check option order

        * 15.5.4.6. Callback example 3: check option order
          (generalized)

        * 15.5.4.7. Callback example 4: check arbitrary condition

        * 15.5.4.8. Callback example 5: fixed arguments

        * 15.5.4.9. Callback example 6: variable arguments

      * 15.5.5. Extending "optparse"

        * 15.5.5.1. Adding new types

        * 15.5.5.2. Adding new actions

    * 15.6. "getopt" — C-style parser for command line options

    * 15.7. "logging" — Logging facility for Python

      * 15.7.1. Logger Objects

      * 15.7.2. Logging Levels

      * 15.7.3. Handler Objects

      * 15.7.4. Formatter Objects

      * 15.7.5. Filter Objects

      * 15.7.6. LogRecord Objects

      * 15.7.7. LogRecord attributes

      * 15.7.8. LoggerAdapter Objects

      * 15.7.9. Thread Safety

      * 15.7.10. Fonctions de niveau module

      * 15.7.11. Integration with the warnings module

    * 15.8. "logging.config" — Logging configuration

      * 15.8.1. Configuration functions

      * 15.8.2. Configuration dictionary schema

        * 15.8.2.1. Dictionary Schema Details

        * 15.8.2.2. Incremental Configuration

        * 15.8.2.3. Object connections

        * 15.8.2.4. User-defined objects

        * 15.8.2.5. Access to external objects

        * 15.8.2.6. Access to internal objects

        * 15.8.2.7. Import resolution and custom importers

      * 15.8.3. Configuration file format

    * 15.9. "logging.handlers" — Logging handlers

      * 15.9.1. StreamHandler

      * 15.9.2. FileHandler

      * 15.9.3. NullHandler

      * 15.9.4. WatchedFileHandler

      * 15.9.5. RotatingFileHandler

      * 15.9.6. TimedRotatingFileHandler

      * 15.9.7. SocketHandler

      * 15.9.8. DatagramHandler

      * 15.9.9. SysLogHandler

      * 15.9.10. NTEventLogHandler

      * 15.9.11. SMTPHandler

      * 15.9.12. MemoryHandler

      * 15.9.13. HTTPHandler

    * 15.10. Saisie de mot de passe portable

    * 15.11. "curses" — Terminal handling for character-cell
      displays

      * 15.11.1. Fonctions

      * 15.11.2. Window Objects

      * 15.11.3. Constantes

    * 15.12. "curses.textpad" — Text input widget for curses
      programs

      * 15.12.1. Textbox objects

    * 15.13. "curses.ascii" — Utilities for ASCII characters

    * 15.14. "curses.panel" — A panel stack extension for curses

      * 15.14.1. Fonctions

      * 15.14.2. Panel Objects

    * 15.15. "platform" —  Access to underlying platform’s
      identifying data

      * 15.15.1. Cross Platform

      * 15.15.2. Java Platform

      * 15.15.3. Windows Platform

        * 15.15.3.1. Win95/98 specific

      * 15.15.4. Mac OS Platform

      * 15.15.5. Unix Platforms

    * 15.16. "errno" — Standard errno system symbols

    * 15.17. "ctypes" — A foreign function library for Python

      * 15.17.1. ctypes tutorial

        * 15.17.1.1. Loading dynamic link libraries

        * 15.17.1.2. Accessing functions from loaded dlls

        * 15.17.1.3. Calling functions

        * 15.17.1.4. Fundamental data types

        * 15.17.1.5. Calling functions, continued

        * 15.17.1.6. Calling functions with your own custom data
          types

        * 15.17.1.7. Specifying the required argument types
          (function prototypes)

        * 15.17.1.8. Return types

        * 15.17.1.9. Passing pointers (or: passing parameters by
          reference)

        * 15.17.1.10. Structures and unions

        * 15.17.1.11. Structure/union alignment and byte order

        * 15.17.1.12. Bit fields in structures and unions

        * 15.17.1.13. Arrays

        * 15.17.1.14. Pointers

        * 15.17.1.15. Type conversions

        * 15.17.1.16. Incomplete Types

        * 15.17.1.17. Callback functions

        * 15.17.1.18. Accessing values exported from dlls

        * 15.17.1.19. Surprises

        * 15.17.1.20. Variable-sized data types

      * 15.17.2. ctypes reference

        * 15.17.2.1. Finding shared libraries

        * 15.17.2.2. Loading shared libraries

        * 15.17.2.3. Foreign functions

        * 15.17.2.4. Function prototypes

        * 15.17.2.5. Utility functions

        * 15.17.2.6. Types de données

        * 15.17.2.7. Fundamental data types

        * 15.17.2.8. Structured data types

        * 15.17.2.9. Arrays and pointers

  * 16. Optional Operating System Services

    * 16.1. "select" — Waiting for I/O completion

      * 16.1.1. Edge and Level Trigger Polling (epoll) Objects

      * 16.1.2. Polling Objects

      * 16.1.3. Kqueue Objects

      * 16.1.4. Kevent Objects

    * 16.2. "threading" — Higher-level threading interface

      * 16.2.1. Thread Objects

      * 16.2.2. Lock Objects

      * 16.2.3. RLock Objects

      * 16.2.4. Condition Objects

      * 16.2.5. Semaphore Objects

        * 16.2.5.1. "Semaphore" Example

      * 16.2.6. Event Objects

      * 16.2.7. Timer Objects

      * 16.2.8. Using locks, conditions, and semaphores in the
        "with" statement

      * 16.2.9. Importing in threaded code

    * 16.3. "thread" — Multiple threads of control

    * 16.4. "dummy_threading" — Module de substitution au module
      "threading"

    * 16.5. "dummy_thread" — Drop-in replacement for the "thread"
      module

    * 16.6. "multiprocessing" — Process-based « threading »
      interface

      * 16.6.1. Introduction

        * 16.6.1.1. The "Process" class

        * 16.6.1.2. Exchanging objects between processes

        * 16.6.1.3. Synchronization between processes

        * 16.6.1.4. Sharing state between processes

        * 16.6.1.5. Using a pool of workers

      * 16.6.2. Reference

        * 16.6.2.1. "Process" and exceptions

        * 16.6.2.2. Pipes and Queues

        * 16.6.2.3. Miscellaneous

        * 16.6.2.4. Connection Objects

        * 16.6.2.5. Synchronization primitives

        * 16.6.2.6. Shared "ctypes" Objects

          * 16.6.2.6.1. The "multiprocessing.sharedctypes" module

        * 16.6.2.7. Managers

          * 16.6.2.7.1. Customized managers

          * 16.6.2.7.2. Using a remote manager

        * 16.6.2.8. Proxy Objects

          * 16.6.2.8.1. Cleanup

        * 16.6.2.9. Process Pools

        * 16.6.2.10. Listeners and Clients

          * 16.6.2.10.1. Address Formats

        * 16.6.2.11. Authentication keys

        * 16.6.2.12. Journalisation

        * 16.6.2.13. The "multiprocessing.dummy" module

      * 16.6.3. Programming guidelines

        * 16.6.3.1. All platforms

        * 16.6.3.2. Windows

      * 16.6.4. Exemples

    * 16.7. "mmap" — Memory-mapped file support

    * 16.8. "readline" — interface pour GNU *readline*

      * 16.8.1. Fichier d’initialisation

      * 16.8.2. Tampon de ligne

      * 16.8.3. Fichier d’historique

      * 16.8.4. Liste d’historique

      * 16.8.5. Fonctions de rappel au démarrage

      * 16.8.6. Complétion

      * 16.8.7. Exemple

    * 16.9. "rlcompleter" — Fonction de complétion pour *GNU
      readline*

      * 16.9.1. Objets pour la complétion (*Completer Objects*)

  * 17. Communication et réseau entre processus

    * 17.1. "subprocess" — Gestion de sous-processus

      * 17.1.1. Utiliser le module "subprocess"

        * 17.1.1.1. Arguments fréquemment utilisés

        * 17.1.1.2. Constructeur de *Popen*

        * 17.1.1.3. Exceptions

        * 17.1.1.4. Security

      * 17.1.2. Objets *Popen*

      * 17.1.3. Utilitaires *Popen* pour Windows

        * 17.1.3.1. Constantes

      * 17.1.4. Remplacer les fonctions plus anciennes par le module
        "subprocess"

        * 17.1.4.1. Remplacement des *backquotes* des *shells
          /bin/sh*

        * 17.1.4.2. Remplacer les *pipes* du *shell*

        * 17.1.4.3. Remplacer "os.system()"

        * 17.1.4.4. Remplacer les fonctions de la famille "os.spawn"

        * 17.1.4.5. Remplacer "os.popen()", "os.popen2()",
          "os.popen3()" etc.

        * 17.1.4.6. Remplacer les fonctions du module "popen2"

      * 17.1.5. Notes

        * 17.1.5.1. Convertir une séquence d’arguments vers une
          chaîne de caractères sous Windows

    * 17.2. "socket" — Low-level networking interface

      * 17.2.1. Socket Objects

      * 17.2.2. Exemple

    * 17.3. "ssl" — TLS/SSL wrapper for socket objects

      * 17.3.1. Functions, Constants, and Exceptions

        * 17.3.1.1. Socket creation

        * 17.3.1.2. Context creation

        * 17.3.1.3. Random generation

        * 17.3.1.4. Certificate handling

        * 17.3.1.5. Constantes

      * 17.3.2. SSL Sockets

      * 17.3.3. SSL Contexts

      * 17.3.4. Certificates

        * 17.3.4.1. Certificate chains

        * 17.3.4.2. CA certificates

        * 17.3.4.3. Combined key and certificate

        * 17.3.4.4. Self-signed certificates

      * 17.3.5. Exemples

        * 17.3.5.1. Testing for SSL support

        * 17.3.5.2. Client-side operation

        * 17.3.5.3. Server-side operation

      * 17.3.6. Notes on non-blocking sockets

      * 17.3.7. Security considerations

        * 17.3.7.1. Best defaults

        * 17.3.7.2. Manual settings

          * 17.3.7.2.1. Verifying certificates

          * 17.3.7.2.2. Protocol versions

          * 17.3.7.2.3. Cipher selection

        * 17.3.7.3. Multi-processing

      * 17.3.8. LibreSSL support

    * 17.4. "signal" — Set handlers for asynchronous events

      * 17.4.1. Exemple

    * 17.5. "popen2" — Subprocesses with accessible I/O streams

      * 17.5.1. Popen3 and Popen4 Objects

      * 17.5.2. Flow Control Issues

    * 17.6. "asyncore" — Gestionnaire de socket asynchrone

      * 17.6.1. Exemple de client HTTP basique avec "asyncore"

      * 17.6.2. Serveur *echo* basique avec "asyncore"

    * 17.7. "asynchat" — Gestionnaire d’interfaces de connexion
      (*socket*) commande/réponse asynchrones

      * 17.7.1. asynchat - Auxiliary Classes

      * 17.7.2. Exemple *asynchat*

  * 18. Traitement des données provenant d’Internet

    * 18.1. "email" — An email and MIME handling package

      * 18.1.1. "email.message": Representing an email message

      * 18.1.2. "email.parser": Parsing email messages

        * 18.1.2.1. FeedParser API

        * 18.1.2.2. Parser class API

        * 18.1.2.3. Additional notes

      * 18.1.3. "email.generator": Generating MIME documents

      * 18.1.4. "email.mime": Creating email and MIME objects from
        scratch

      * 18.1.5. "email.header": Internationalized headers

      * 18.1.6. "email.charset": Representing character sets

      * 18.1.7. "email.encoders" : Encodeurs

      * 18.1.8. "email.errors": Exception and Defect classes

      * 18.1.9. "email.utils": Miscellaneous utilities

      * 18.1.10. "email.iterators": Itérateurs

      * 18.1.11. "email": Exemples

      * 18.1.12. Package History

      * 18.1.13. Differences from "mimelib"

    * 18.2. "json" — Encodage et décodage JSON

      * 18.2.1. Utilisation basique

      * 18.2.2. Encodeurs et décodeurs

      * 18.2.3. Conformité au standard et Interopérabilité

        * 18.2.3.1. Encodage des caractères

        * 18.2.3.2. Valeurs numériques infinies et NaN

        * 18.2.3.3. Noms répétés au sein d’un objet

        * 18.2.3.4. Valeurs de plus haut niveau autres qu’objets ou
          tableaux

        * 18.2.3.5. Limitations de l’implémentation

    * 18.3. "mailcap" — Manipulation de fichiers Mailcap

    * 18.4. "mailbox" — Manipulate mailboxes in various formats

      * 18.4.1. "Mailbox" objects

        * 18.4.1.1. "Maildir"

        * 18.4.1.2. "mbox"

        * 18.4.1.3. "MH"

        * 18.4.1.4. "Babyl"

        * 18.4.1.5. "MMDF"

      * 18.4.2. "Message" objects

        * 18.4.2.1. "MaildirMessage"

        * 18.4.2.2. "mboxMessage"

        * 18.4.2.3. "MHMessage"

        * 18.4.2.4. "BabylMessage"

        * 18.4.2.5. "MMDFMessage"

      * 18.4.3. Exceptions

      * 18.4.4. Deprecated classes and methods

      * 18.4.5. Exemples

    * 18.5. "mhlib" — Access to MH mailboxes

      * 18.5.1. MH Objects

      * 18.5.2. Folder Objects

      * 18.5.3. Message Objects

    * 18.6. "mimetools" — Tools for parsing MIME messages

      * 18.6.1. Additional Methods of Message Objects

    * 18.7. "mimetypes" — Map filenames to MIME types

      * 18.7.1. MimeTypes Objects

    * 18.8. "MimeWriter" — Generic MIME file writer

      * 18.8.1. MimeWriter Objects

    * 18.9. "mimify" — MIME processing of mail messages

    * 18.10. "multifile" — Support for files containing distinct
      parts

      * 18.10.1. MultiFile Objects

      * 18.10.2. "MultiFile" Example

    * 18.11. "rfc822" — Parse RFC 2822 mail headers

      * 18.11.1. Message Objects

      * 18.11.2. AddressList Objects

    * 18.12. "base64" — RFC 3548: Base16, Base32, Base64 Data
      Encodings

    * 18.13. "binhex" — Encode et décode les fichiers *binhex4*

      * 18.13.1. Notes

    * 18.14. "binascii" — Convert between binary and ASCII

    * 18.15. "quopri" — Encode et décode des données *MIME quoted-
      printable*

    * 18.16. "uu" — Encode et décode les fichiers *uuencode*

  * 19. Outils de traitement de balises structurées

    * 19.1. "HTMLParser" — Simple HTML and XHTML parser

      * 19.1.1. Example HTML Parser Application

      * 19.1.2. "HTMLParser" Methods

      * 19.1.3. Exemples

    * 19.2. "sgmllib" — Simple SGML parser

    * 19.3. "htmllib" — A parser for HTML documents

      * 19.3.1. HTMLParser Objects

    * 19.4. "htmlentitydefs" — Definitions of HTML general entities

    * 19.5. Modules de traitement XML

    * 19.6. Vulnérabilités XML

      * 19.6.1. defused packages

    * 19.7. "xml.etree.ElementTree" — The ElementTree XML API

      * 19.7.1. Tutoriel

        * 19.7.1.1. XML tree and elements

        * 19.7.1.2. Parsing XML

        * 19.7.1.3. Finding interesting elements

        * 19.7.1.4. Modifying an XML File

        * 19.7.1.5. Building XML documents

        * 19.7.1.6. Parsing XML with Namespaces

        * 19.7.1.7. Additional resources

      * 19.7.2. XPath support

        * 19.7.2.1. Exemple

        * 19.7.2.2. Supported XPath syntax

      * 19.7.3. Reference

        * 19.7.3.1. Fonctions

        * 19.7.3.2. Objets Elements

        * 19.7.3.3. ElementTree Objects

        * 19.7.3.4. QName Objects

        * 19.7.3.5. TreeBuilder Objects

        * 19.7.3.6. XMLParser Objects

    * 19.8. "xml.dom" — L’API Document Object Model

      * 19.8.1. Contenu du module

      * 19.8.2. Objets dans le DOM

        * 19.8.2.1. Objets DOMImplementation

        * 19.8.2.2. Objets nœuds

        * 19.8.2.3. Objet NodeList

        * 19.8.2.4. Objets DocumnentType

        * 19.8.2.5. Objets Document

        * 19.8.2.6. Objets Elements

        * 19.8.2.7. Objets Attr

        * 19.8.2.8. Objets NameNodeMap

        * 19.8.2.9. Objets Comment

        * 19.8.2.10. Objets Text et CDATASection

        * 19.8.2.11. Objets ProcessingInstruction

        * 19.8.2.12. Exceptions

      * 19.8.3. Conformité

        * 19.8.3.1. Correspondance des types

        * 19.8.3.2. Méthodes d’accès

    * 19.9. "xml.dom.minidom" — Minimal DOM implementation

      * 19.9.1. DOM Objects

      * 19.9.2. DOM Example

      * 19.9.3. minidom and the DOM standard

    * 19.10. "xml.dom.pulldom" — Support for building partial DOM
      trees

      * 19.10.1. DOMEventStream Objects

    * 19.11. "xml.sax" — Prise en charge des analyseurs SAX2

      * 19.11.1. Les objets SAXException

    * 19.12. "xml.sax.handler" — Base classes for SAX handlers

      * 19.12.1. ContentHandler Objects

      * 19.12.2. DTDHandler Objects

      * 19.12.3. EntityResolver Objects

      * 19.12.4. ErrorHandler Objects

    * 19.13. "xml.sax.saxutils" — SAX Utilities

    * 19.14. "xml.sax.xmlreader" — Interface for XML parsers

      * 19.14.1. XMLReader Objects

      * 19.14.2. IncrementalParser Objects

      * 19.14.3. Locator Objects

      * 19.14.4. InputSource Objects

      * 19.14.5. The "Attributes" Interface

      * 19.14.6. The "AttributesNS" Interface

    * 19.15. "xml.parsers.expat" — Fast XML parsing using Expat

      * 19.15.1. XMLParser Objects

      * 19.15.2. ExpatError Exceptions

      * 19.15.3. Exemple

      * 19.15.4. Content Model Descriptions

      * 19.15.5. Expat error constants

  * 20. Gestion des protocoles internet

    * 20.1. "webbrowser" — Convenient Web-browser controller

      * 20.1.1. Browser Controller Objects

    * 20.2. "cgi" — Common Gateway Interface support

      * 20.2.1. Introduction

      * 20.2.2. Using the cgi module

      * 20.2.3. Higher Level Interface

      * 20.2.4. Old classes

      * 20.2.5. Fonctions

      * 20.2.6. Caring about security

      * 20.2.7. Installing your CGI script on a Unix system

      * 20.2.8. Testing your CGI script

      * 20.2.9. Debugging CGI scripts

      * 20.2.10. Common problems and solutions

    * 20.3. "cgitb" — Gestionnaire d’exceptions pour les scripts CGI

    * 20.4. "wsgiref" — WSGI Utilities and Reference Implementation

      * 20.4.1. "wsgiref.util" – WSGI environment utilities

      * 20.4.2. "wsgiref.headers" – WSGI response header tools

      * 20.4.3. "wsgiref.simple_server" – a simple WSGI HTTP server

      * 20.4.4. "wsgiref.validate" — WSGI conformance checker

      * 20.4.5. "wsgiref.handlers" – server/gateway base classes

      * 20.4.6. Exemples

    * 20.5. "urllib" — Open arbitrary resources by URL

      * 20.5.1. High-level interface

      * 20.5.2. Utility functions

      * 20.5.3. URL Opener objects

      * 20.5.4. "urllib" Restrictions

      * 20.5.5. Exemples

    * 20.6. "urllib2" — extensible library for opening URLs

      * 20.6.1. Request Objects

      * 20.6.2. OpenerDirector Objects

      * 20.6.3. BaseHandler Objects

      * 20.6.4. HTTPRedirectHandler Objects

      * 20.6.5. HTTPCookieProcessor Objects

      * 20.6.6. ProxyHandler Objects

      * 20.6.7. HTTPPasswordMgr Objects

      * 20.6.8. AbstractBasicAuthHandler Objects

      * 20.6.9. HTTPBasicAuthHandler Objects

      * 20.6.10. ProxyBasicAuthHandler Objects

      * 20.6.11. AbstractDigestAuthHandler Objects

      * 20.6.12. HTTPDigestAuthHandler Objects

      * 20.6.13. ProxyDigestAuthHandler Objects

      * 20.6.14. HTTPHandler Objects

      * 20.6.15. HTTPSHandler Objects

      * 20.6.16. FileHandler Objects

      * 20.6.17. FTPHandler Objects

      * 20.6.18. CacheFTPHandler Objects

      * 20.6.19. UnknownHandler Objects

      * 20.6.20. HTTPErrorProcessor Objects

      * 20.6.21. Exemples

    * 20.7. "httplib" — HTTP protocol client

      * 20.7.1. HTTPConnection Objects

      * 20.7.2. HTTPResponse Objects

      * 20.7.3. Exemples

    * 20.8. "ftplib" — FTP protocol client

      * 20.8.1. FTP Objects

      * 20.8.2. FTP_TLS Objects

    * 20.9. "poplib" — POP3 protocol client

      * 20.9.1. POP3 Objects

      * 20.9.2. POP3 Example

    * 20.10. "imaplib" — IMAP4 protocol client

      * 20.10.1. IMAP4 Objects

      * 20.10.2. IMAP4 Example

    * 20.11. "nntplib" — NNTP protocol client

      * 20.11.1. NNTP Objects

    * 20.12. "smtplib" — SMTP protocol client

      * 20.12.1. SMTP Objects

      * 20.12.2. SMTP Example

    * 20.13. "smtpd" — SMTP Server

      * 20.13.1. SMTPServer Objects

      * 20.13.2. DebuggingServer Objects

      * 20.13.3. PureProxy Objects

      * 20.13.4. MailmanProxy Objects

    * 20.14. "telnetlib" — Telnet client

      * 20.14.1. Telnet Objects

      * 20.14.2. Telnet Example

    * 20.15. "uuid" — UUID objects according to RFC 4122

      * 20.15.1. Exemple

    * 20.16. "urlparse" — Parse URLs into components

      * 20.16.1. Results of "urlparse()" and "urlsplit()"

    * 20.17. "SocketServer" — A framework for network servers

      * 20.17.1. Server Creation Notes

      * 20.17.2. Server Objects

      * 20.17.3. Request Handler Objects

      * 20.17.4. Exemples

        * 20.17.4.1. "SocketServer.TCPServer" Example

        * 20.17.4.2. "SocketServer.UDPServer" Example

        * 20.17.4.3. Asynchronous Mixins

    * 20.18. "BaseHTTPServer" — Basic HTTP server

      * 20.18.1. More examples

    * 20.19. "SimpleHTTPServer" — Simple HTTP request handler

    * 20.20. "CGIHTTPServer" — CGI-capable HTTP request handler

    * 20.21. "cookielib" — Cookie handling for HTTP clients

      * 20.21.1. CookieJar and FileCookieJar Objects

      * 20.21.2. FileCookieJar subclasses and co-operation with web
        browsers

      * 20.21.3. CookiePolicy Objects

      * 20.21.4. DefaultCookiePolicy Objects

      * 20.21.5. Cookie Objects

      * 20.21.6. Exemples

    * 20.22. "Cookie" — HTTP state management

      * 20.22.1. Cookie Objects

      * 20.22.2. Morsel Objects

      * 20.22.3. Exemple

    * 20.23. "xmlrpclib" — XML-RPC client access

      * 20.23.1. ServerProxy Objects

      * 20.23.2. Les objets booléens

      * 20.23.3. Objets DateTime

      * 20.23.4. Binary Objects

      * 20.23.5. Fault Objects

      * 20.23.6. ProtocolError Objects

      * 20.23.7. MultiCall Objects

      * 20.23.8. Convenience Functions

      * 20.23.9. Example of Client Usage

      * 20.23.10. Example of Client and Server Usage

    * 20.24. "SimpleXMLRPCServer" — Basic XML-RPC server

      * 20.24.1. SimpleXMLRPCServer Objects

        * 20.24.1.1. SimpleXMLRPCServer Example

      * 20.24.2. CGIXMLRPCRequestHandler

    * 20.25. "DocXMLRPCServer" — Self-documenting XML-RPC server

      * 20.25.1. DocXMLRPCServer Objects

      * 20.25.2. DocCGIXMLRPCRequestHandler

  * 21. Services multimédia

    * 21.1. "audioloop" — Manipulation de données audio brutes

    * 21.2. "imageop" — Manipulate raw image data

    * 21.3. "aifc" — Lis et écrit dans les fichiers AIFF et AIFC

    * 21.4. "sunau" — Read and write Sun AU files

      * 21.4.1. AU_read Objects

      * 21.4.2. AU_write Objects

    * 21.5. "wave" — Read and write WAV files

      * 21.5.1. Wave_read Objects

      * 21.5.2. Wave_write Objects

    * 21.6. "chunk" — Read IFF chunked data

    * 21.7. "colorsys" — Conversions entre les systèmes de couleurs

    * 21.8. "imghdr" — Determine the type of an image

    * 21.9. "sndhdr" — Détermine le type d’un fichier audio

    * 21.10. "ossaudiodev" — Access to OSS-compatible audio devices

      * 21.10.1. Audio Device Objects

      * 21.10.2. Mixer Device Objects

  * 22. Internationalisation

    * 22.1. "gettext" — Services d’internationalisation multilingue

      * 22.1.1. API GNU **gettext**

      * 22.1.2. API basée sur les classes

        * 22.1.2.1. La classe "NullTranslations"

        * 22.1.2.2. La classe "GNUTranslations"

        * 22.1.2.3. Support du catalogue de message de Solaris

        * 22.1.2.4. Le constructeur *Catalog*

      * 22.1.3. Internationaliser vos programmes et modules

        * 22.1.3.1. Localiser votre module

        * 22.1.3.2. Localiser votre application

        * 22.1.3.3. Changer de langue à la volée

        * 22.1.3.4. Traductions différées

        * 22.1.3.5. "gettext()" vs. "lgettext()"

      * 22.1.4. Remerciements

    * 22.2. "locale" — Internationalization services

      * 22.2.1. Background, details, hints, tips and caveats

      * 22.2.2. For extension writers and programs that embed Python

      * 22.2.3. Access to message catalogs

  * 23. *Frameworks* d’applications

    * 23.1. "cmd" — Interpréteurs en ligne de commande.

      * 23.1.1. Objets Cmd

    * 23.2. "shlex" — Simple lexical analysis

      * 23.2.1. shlex Objects

      * 23.2.2. Parsing Rules

  * 24. Interfaces Utilisateur Graphiques avec Tk

    * 24.1. "Tkinter" — Python interface to Tcl/Tk

      * 24.1.1. Tkinter Modules

      * 24.1.2. Tkinter Life Preserver

        * 24.1.2.1. How To Use This Section

        * 24.1.2.2. A Simple Hello World Program

      * 24.1.3. A (Very) Quick Look at Tcl/Tk

      * 24.1.4. Mapping Basic Tk into Tkinter

      * 24.1.5. How Tk and Tkinter are Related

      * 24.1.6. Handy Reference

        * 24.1.6.1. Setting Options

        * 24.1.6.2. The Packer

        * 24.1.6.3. Packer Options

        * 24.1.6.4. Coupling Widget Variables

        * 24.1.6.5. The Window Manager

        * 24.1.6.6. Tk Option Data Types

        * 24.1.6.7. Bindings and Events

        * 24.1.6.8. The index Parameter

        * 24.1.6.9. Images

      * 24.1.7. File Handlers

    * 24.2. "ttk" — Tk themed widgets

      * 24.2.1. Using Ttk

      * 24.2.2. Ttk Widgets

      * 24.2.3. Widget

        * 24.2.3.1. Standard Options

        * 24.2.3.2. Scrollable Widget Options

        * 24.2.3.3. Label Options

        * 24.2.3.4. Compatibility Options

        * 24.2.3.5. Widget States

        * 24.2.3.6. ttk.Widget

      * 24.2.4. Combobox

        * 24.2.4.1. Options

        * 24.2.4.2. Virtual events

        * 24.2.4.3. ttk.Combobox

      * 24.2.5. Notebook

        * 24.2.5.1. Options

        * 24.2.5.2. Tab Options

        * 24.2.5.3. Tab Identifiers

        * 24.2.5.4. Virtual Events

        * 24.2.5.5. ttk.Notebook

      * 24.2.6. Progressbar

        * 24.2.6.1. Options

        * 24.2.6.2. ttk.Progressbar

      * 24.2.7. Separator

        * 24.2.7.1. Options

      * 24.2.8. Sizegrip

        * 24.2.8.1. Platform-specific notes

        * 24.2.8.2. Bugs

      * 24.2.9. Treeview

        * 24.2.9.1. Options

        * 24.2.9.2. Item Options

        * 24.2.9.3. Tag Options

        * 24.2.9.4. Column Identifiers

        * 24.2.9.5. Virtual Events

        * 24.2.9.6. ttk.Treeview

      * 24.2.10. Ttk Styling

        * 24.2.10.1. Layouts

    * 24.3. "Tix" — Extension widgets for Tk

      * 24.3.1. Using Tix

      * 24.3.2. Tix Widgets

        * 24.3.2.1. Basic Widgets

        * 24.3.2.2. File Selectors

        * 24.3.2.3. Hierarchical ListBox

        * 24.3.2.4. Tabular ListBox

        * 24.3.2.5. Manager Widgets

        * 24.3.2.6. Image Types

        * 24.3.2.7. Miscellaneous Widgets

        * 24.3.2.8. Form Geometry Manager

      * 24.3.3. Tix Commands

    * 24.4. "ScrolledText" — Scrolled Text Widget

    * 24.5. "turtle" — Turtle graphics for Tk

      * 24.5.1. Introduction

      * 24.5.2. Overview over available Turtle and Screen methods

        * 24.5.2.1. Turtle methods

        * 24.5.2.2. Methods of TurtleScreen/Screen

      * 24.5.3. Methods of RawTurtle/Turtle and corresponding
        functions

        * 24.5.3.1. Turtle motion

        * 24.5.3.2. Tell Turtle’s state

        * 24.5.3.3. Settings for measurement

        * 24.5.3.4. Pen control

          * 24.5.3.4.1. Drawing state

          * 24.5.3.4.2. Color control

          * 24.5.3.4.3. Filling

          * 24.5.3.4.4. More drawing control

        * 24.5.3.5. Turtle state

          * 24.5.3.5.1. Visibility

          * 24.5.3.5.2. Appearance

        * 24.5.3.6. Using events

        * 24.5.3.7. Special Turtle methods

        * 24.5.3.8. Excursus about the use of compound shapes

      * 24.5.4. Methods of TurtleScreen/Screen and corresponding
        functions

        * 24.5.4.1. Window control

        * 24.5.4.2. Animation control

        * 24.5.4.3. Using screen events

        * 24.5.4.4. Settings and special methods

        * 24.5.4.5. Methods specific to Screen, not inherited from
          TurtleScreen

      * 24.5.5. The public classes of the module "turtle"

      * 24.5.6. Help and configuration

        * 24.5.6.1. How to use help

        * 24.5.6.2. Translation of docstrings into different
          languages

        * 24.5.6.3. How to configure Screen and Turtles

      * 24.5.7. Demo scripts

    * 24.6. IDLE

      * 24.6.1. Menus

        * 24.6.1.1. File menu (Shell and Editor)

        * 24.6.1.2. Edit menu (Shell and Editor)

        * 24.6.1.3. Format menu (Editor window only)

        * 24.6.1.4. Run menu (Editor window only)

        * 24.6.1.5. Shell menu (Shell window only)

        * 24.6.1.6. Debug menu (Shell window only)

        * 24.6.1.7. Options menu (Shell and Editor)

        * 24.6.1.8. Window menu (Shell and Editor)

        * 24.6.1.9. Help menu (Shell and Editor)

        * 24.6.1.10. Context Menus

      * 24.6.2. Editing and navigation

        * 24.6.2.1. Automatic indentation

        * 24.6.2.2. Completions

        * 24.6.2.3. Calltips

        * 24.6.2.4. Python Shell window

        * 24.6.2.5. Text colors

      * 24.6.3. Startup and code execution

        * 24.6.3.1. Command line usage

        * 24.6.3.2. IDLE-console differences

        * 24.6.3.3. Running without a subprocess

      * 24.6.4. Help and preferences

        * 24.6.4.1. Additional help sources

        * 24.6.4.2. Setting preferences

        * 24.6.4.3. Extensions

    * 24.7. Autres paquets d’interface graphique utilisateur

  * 25. Outils de développement

    * 25.1. "pydoc" — Générateur de documentation et système d’aide
      en ligne

    * 25.2. "doctest" — Test interactive Python examples

      * 25.2.1. Simple Usage: Checking Examples in Docstrings

      * 25.2.2. Simple Usage: Checking Examples in a Text File

      * 25.2.3. How It Works

        * 25.2.3.1. Which Docstrings Are Examined?

        * 25.2.3.2. How are Docstring Examples Recognized?

        * 25.2.3.3. What’s the Execution Context?

        * 25.2.3.4. What About Exceptions?

        * 25.2.3.5. Option Flags

        * 25.2.3.6. Directives

        * 25.2.3.7. Avertissements

      * 25.2.4. Basic API

      * 25.2.5. Unittest API

      * 25.2.6. Advanced API

        * 25.2.6.1. DocTest Objects

        * 25.2.6.2. Example Objects

        * 25.2.6.3. DocTestFinder objects

        * 25.2.6.4. DocTestParser objects

        * 25.2.6.5. DocTestRunner objects

        * 25.2.6.6. OutputChecker objects

      * 25.2.7. Debugging

      * 25.2.8. Soapbox

    * 25.3. "unittest" — *Framework* de tests unitaires

      * 25.3.1. Exemple basique

      * 25.3.2. Command-Line Interface

        * 25.3.2.1. Command-line options

      * 25.3.3. Test Discovery

      * 25.3.4. Organizing test code

      * 25.3.5. Re-using old test code

      * 25.3.6. Skipping tests and expected failures

      * 25.3.7. Classes and functions

        * 25.3.7.1. Test cases

          * 25.3.7.1.1. Deprecated aliases

        * 25.3.7.2. Grouping tests

        * 25.3.7.3. Loading and running tests

          * 25.3.7.3.1. load_tests Protocol

      * 25.3.8. Class and Module Fixtures

        * 25.3.8.1. setUpClass and tearDownClass

        * 25.3.8.2. setUpModule and tearDownModule

      * 25.3.9. Signal Handling

    * 25.4. *2to3* — Traduction automatique de code en Python 2 vers
      Python 3

      * 25.4.1. Utilisation de *2to3*

      * 25.4.2. Correcteurs

      * 25.4.3. "lib2to3" — la bibliothèque de *2to3*

    * 25.5. "test" — Regression tests package for Python

      * 25.5.1. Writing Unit Tests for the "test" package

      * 25.5.2. Running tests using the command-line interface

    * 25.6. "test.support" — Utility functions for tests

  * 26. Débogueur et instrumentation

    * 26.1. "bdb" — Framework de débogage

    * 26.2. "pdb" — Le débogueur Python

    * 26.3. Commande du débogueur

    * 26.4. The Python Profilers

      * 26.4.1. Introduction to the profilers

      * 26.4.2. Instant User’s Manual

      * 26.4.3. "profile" and "cProfile" Module Reference

      * 26.4.4. The "Stats" Class

      * 26.4.5. What Is Deterministic Profiling?

      * 26.4.6. Limitations

      * 26.4.7. Calibration

      * 26.4.8. Using a custom timer

    * 26.5. "hotshot" — High performance logging profiler

      * 26.5.1. Profile Objects

      * 26.5.2. Using hotshot data

      * 26.5.3. Example Usage

    * 26.6. "timeit" — Measure execution time of small code snippets

      * 26.6.1. Basic Examples

      * 26.6.2. Python Interface

      * 26.6.3. Command-Line Interface

      * 26.6.4. Exemples

    * 26.7. "trace" — Trace or track Python statement execution

      * 26.7.1. Utilisation en ligne de commande.

        * 26.7.1.1. Main options

        * 26.7.1.2. Modifiers

        * 26.7.1.3. Filters

      * 26.7.2. Programmatic Interface

  * 27. Paquets et distribution de paquets logiciels

    * 27.1. "distutils" — Création et installation des modules
      Python

    * 27.2. "ensurepip" — Bootstrapping the "pip" installer

      * 27.2.1. Command line interface

      * 27.2.2. Module API

  * 28. Environnement d’exécution Python

    * 28.1. "sys" — Paramètres et fonctions propres à des systèmes

    * 28.2. "sysconfig" — Provide access to Python’s configuration
      information

      * 28.2.1. Configuration variables

      * 28.2.2. Installation paths

      * 28.2.3. Other functions

    * 28.3. "__builtin__" — Objets natifs

    * 28.4. "future_builtins" — Python 3 builtins

    * 28.5. "__main__" — Point d’entrée des scripts

    * 28.6. "warnings" — Warning control

      * 28.6.1. Warning Categories

      * 28.6.2. The Warnings Filter

        * 28.6.2.1. Default Warning Filters

      * 28.6.3. Temporarily Suppressing Warnings

      * 28.6.4. Testing Warnings

      * 28.6.5. Updating Code For New Versions of Python

      * 28.6.6. Available Functions

      * 28.6.7. Available Context Managers

    * 28.7. "contextlib" — Utilities for "with"-statement contexts

    * 28.8. "abc" — Classes de Base Abstraites

    * 28.9. "atexit" — Gestionnaire de fin de programme

      * 28.9.1. Exemple avec "atexit"

    * 28.10. "traceback" — Print or retrieve a stack traceback

      * 28.10.1. Traceback Examples

    * 28.11. "__future__" — Définitions des futurs

    * 28.12. "gc" — Garbage Collector interface

    * 28.13. "inspect" — Inspect live objects

      * 28.13.1. Types and members

      * 28.13.2. Retrieving source code

      * 28.13.3. Classes and functions

      * 28.13.4. The interpreter stack

    * 28.14. "site" — Site-specific configuration hook

    * 28.15. "user" — User-specific configuration hook

    * 28.16. "fpectl" — Floating point exception control

      * 28.16.1. Exemple

      * 28.16.2. Limitations and other considerations

  * 29. Interpréteurs Python personnalisés

    * 29.1. "code" — Interpreter base classes

      * 29.1.1. Interactive Interpreter Objects

      * 29.1.2. Interactive Console Objects

    * 29.2. "codeop" — Compile Python code

  * 30. Restricted Execution

    * 30.1. "rexec" — Restricted execution framework

      * 30.1.1. RExec Objects

      * 30.1.2. Defining restricted environments

      * 30.1.3. An example

    * 30.2. "Bastion" — Restricting access to objects

  * 31. Importer des modules

    * 31.1. "imp" — Access the "import" internals

      * 31.1.1. Exemples

    * 31.2. "importlib" — Convenience wrappers for "__import__()"

    * 31.3. "imputil" — Import utilities

      * 31.3.1. Exemples

    * 31.4. "zipimport" — Import modules from Zip archives

      * 31.4.1. zipimporter Objects

      * 31.4.2. Exemples

    * 31.5. "pkgutil" — Package extension utility

    * 31.6. "modulefinder" — Identifie les modules utilisés par un
      script

      * 31.6.1. Exemples d’utilisation de la classe "ModuleFinder"

    * 31.7. "runpy" — Locating and executing Python modules

  * 32. Services du Langage Python

    * 32.1. "parser" — Access Python parse trees

      * 32.1.1. Creating ST Objects

      * 32.1.2. Converting ST Objects

      * 32.1.3. Queries on ST Objects

      * 32.1.4. Exceptions and Error Handling

      * 32.1.5. ST Objects

      * 32.1.6. Example: Emulation of "compile()"

    * 32.2. "ast" — Arbres Syntaxiques Abstraits

      * 32.2.1. Les classes nœud

      * 32.2.2. Grammaire abstraite

      * 32.2.3. Outils du module "ast"

    * 32.3. "symtable" — Access to the compiler’s symbol tables

      * 32.3.1. Generating Symbol Tables

      * 32.3.2. Examining Symbol Tables

    * 32.4. "symbol" — Constantes utilisées dans les Arbres
      Syntaxiques

    * 32.5. "token" — Constantes utilisées avec les arbres d’analyse
      Python (*parse trees*)

    * 32.6. "keyword" — Tester si des chaînes sont des mot-clés
      Python

    * 32.7. "tokenize" — Analyseur lexical de Python

    * 32.8. "tabnanny" — Détection d’indentation ambiguë

    * 32.9. "pyclbr" — Python class browser support

      * 32.9.1. Objets classes

      * 32.9.2. Objets fonctions

    * 32.10. "py_compile" — Compile Python source files

    * 32.11. "compileall" — Byte-compile Python libraries

      * 32.11.1. Command-line use

      * 32.11.2. Public functions

    * 32.12. "dis" — Disassembler for Python bytecode

      * 32.12.1. Python Bytecode Instructions

    * 32.13. "pickletools" — Tools for pickle developers

  * 33. Python compiler package

    * 33.1. The basic interface

    * 33.2. Limitations

    * 33.3. Python Abstract Syntax

      * 33.3.1. AST Nodes

      * 33.3.2. Assignment nodes

      * 33.3.3. Exemples

    * 33.4. Using Visitors to Walk ASTs

    * 33.5. Bytecode Generation

  * 34. Services divers

    * 34.1. "formatter" — Generic output formatting

      * 34.1.1. The Formatter Interface

      * 34.1.2. Formatter Implementations

      * 34.1.3. The Writer Interface

      * 34.1.4. Writer Implementations

  * 35. Services spécifiques à MS Windows

    * 35.1. "msilib" — Read and write Microsoft Installer files

      * 35.1.1. Database Objects

      * 35.1.2. View Objects

      * 35.1.3. Summary Information Objects

      * 35.1.4. Record Objects

      * 35.1.5. Errors

      * 35.1.6. CAB Objects

      * 35.1.7. Directory Objects

      * 35.1.8. Features

      * 35.1.9. GUI classes

      * 35.1.10. Precomputed tables

    * 35.2. "msvcrt" — Useful routines from the MS VC++ runtime

      * 35.2.1. File Operations

      * 35.2.2. Console I/O

      * 35.2.3. Other Functions

    * 35.3. "_winreg" — Windows registry access

      * 35.3.1. Constantes

        * 35.3.1.1. HKEY_* Constants

        * 35.3.1.2. Access Rights

          * 35.3.1.2.1. 64-bit Specific

        * 35.3.1.3. Value Types

      * 35.3.2. Registry Handle Objects

    * 35.4. "winsound" — Sound-playing interface for Windows

  * 36. Services spécifiques à Unix

    * 36.1. "posix" — Les appels système POSIX les plus courants

      * 36.1.1. Prise en charge de gros fichiers

      * 36.1.2. Contenu du Module

    * 36.2. "pwd" — The password database

    * 36.3. "spwd" — The shadow password database

    * 36.4. "grp" — The group database

    * 36.5. "crypt" — Function to check Unix passwords

    * 36.6. "dl" — Call C functions in shared objects

      * 36.6.1. Dl Objects

    * 36.7. "termios" — Le style POSIX le contrôle TTY

      * 36.7.1. Exemple

    * 36.8. "tty" — Fonctions de gestion du terminal

    * 36.9. "pty" — Outils de manipulation de pseudo-terminaux

    * 36.10. "fcntl" — The "fcntl" and "ioctl" system calls

    * 36.11. "pipes" — Interface au *pipelines* shell

      * 36.11.1. L’Objet *Template*

    * 36.12. "posixfile" — File-like objects with locking support

    * 36.13. "resource" — Resource usage information

      * 36.13.1. Resource Limits

      * 36.13.2. Resource Usage

    * 36.14. "nis" — Interface à Sun’s NIS (pages jaunes)

    * 36.15. "syslog" — Unix syslog library routines

      * 36.15.1. Exemples

        * 36.15.1.1. Simple example

    * 36.16. "commands" — Utilities for running commands

  * 37. Mac OS X specific services

    * 37.1. "ic" — Access to the Mac OS X Internet Config

      * 37.1.1. IC Objects

    * 37.2. "MacOS" — Access to Mac OS interpreter features

    * 37.3. "macostools" — Convenience routines for file
      manipulation

    * 37.4. "findertools" — The **finder**’s Apple Events interface

    * 37.5. "EasyDialogs" — Basic Macintosh dialogs

      * 37.5.1. ProgressBar Objects

    * 37.6. "FrameWork" — Interactive application framework

      * 37.6.1. Application Objects

      * 37.6.2. Window Objects

      * 37.6.3. ControlsWindow Object

      * 37.6.4. ScrolledWindow Object

      * 37.6.5. DialogWindow Objects

    * 37.7. "autoGIL" — Global Interpreter Lock handling in event
      loops

    * 37.8. Mac OS Toolbox Modules

      * 37.8.1. "Carbon.AE" — Apple Events

      * 37.8.2. "Carbon.AH" — Apple Help

      * 37.8.3. "Carbon.App" — Appearance Manager

      * 37.8.4. "Carbon.Appearance" — Appearance Manager constants

      * 37.8.5. "Carbon.CF" — Core Foundation

      * 37.8.6. "Carbon.CG" — Core Graphics

      * 37.8.7. "Carbon.CarbonEvt" — Carbon Event Manager

      * 37.8.8. "Carbon.CarbonEvents" — Carbon Event Manager
        constants

      * 37.8.9. "Carbon.Cm" — Component Manager

      * 37.8.10. "Carbon.Components" — Component Manager constants

      * 37.8.11. "Carbon.ControlAccessor" — Control Manager accssors

      * 37.8.12. "Carbon.Controls" — Control Manager constants

      * 37.8.13. "Carbon.CoreFounation" — CoreFounation constants

      * 37.8.14. "Carbon.CoreGraphics" — CoreGraphics constants

      * 37.8.15. "Carbon.Ctl" — Control Manager

      * 37.8.16. "Carbon.Dialogs" — Dialog Manager constants

      * 37.8.17. "Carbon.Dlg" — Dialog Manager

      * 37.8.18. "Carbon.Drag" — Drag and Drop Manager

      * 37.8.19. "Carbon.Dragconst" — Drag and Drop Manager
        constants

      * 37.8.20. "Carbon.Events" — Event Manager constants

      * 37.8.21. "Carbon.Evt" — Event Manager

      * 37.8.22. "Carbon.File" — File Manager

      * 37.8.23. "Carbon.Files" — File Manager constants

      * 37.8.24. "Carbon.Fm" — Font Manager

      * 37.8.25. "Carbon.Folder" — Folder Manager

      * 37.8.26. "Carbon.Folders" — Folder Manager constants

      * 37.8.27. "Carbon.Fonts" — Font Manager constants

      * 37.8.28. "Carbon.Help" — Help Manager

      * 37.8.29. "Carbon.IBCarbon" — Carbon InterfaceBuilder

      * 37.8.30. "Carbon.IBCarbonRuntime" — Carbon InterfaceBuilder
        constants

      * 37.8.31. "Carbon.Icn" — Carbon Icon Manager

      * 37.8.32. "Carbon.Icons" — Carbon Icon Manager constants

      * 37.8.33. "Carbon.Launch" — Carbon Launch Services

      * 37.8.34. "Carbon.LaunchServices" — Carbon Launch Services
        constants

      * 37.8.35. "Carbon.List" — List Manager

      * 37.8.36. "Carbon.Lists" — List Manager constants

      * 37.8.37. "Carbon.MacHelp" — Help Manager constants

      * 37.8.38. "Carbon.MediaDescr" — Parsers and generators for
        Quicktime Media descriptors

      * 37.8.39. "Carbon.Menu" — Menu Manager

      * 37.8.40. "Carbon.Menus" — Menu Manager constants

      * 37.8.41. "Carbon.Mlte" — MultiLingual Text Editor

      * 37.8.42. "Carbon.OSA" — Carbon OSA Interface

      * 37.8.43. "Carbon.OSAconst" — Carbon OSA Interface constants

      * 37.8.44. "Carbon.QDOffscreen" — QuickDraw Offscreen
        constants

      * 37.8.45. "Carbon.Qd" — QuickDraw

      * 37.8.46. "Carbon.Qdoffs" — QuickDraw Offscreen

      * 37.8.47. "Carbon.Qt" — QuickTime

      * 37.8.48. "Carbon.QuickDraw" — QuickDraw constants

      * 37.8.49. "Carbon.QuickTime" — QuickTime constants

      * 37.8.50. "Carbon.Res" — Resource Manager and Handles

      * 37.8.51. "Carbon.Resources" — Resource Manager and Handles
        constants

      * 37.8.52. "Carbon.Scrap" — Scrap Manager

      * 37.8.53. "Carbon.Snd" — Sound Manager

      * 37.8.54. "Carbon.Sound" — Sound Manager constants

      * 37.8.55. "Carbon.TE" — TextEdit

      * 37.8.56. "Carbon.TextEdit" — TextEdit constants

      * 37.8.57. "Carbon.Win" — Window Manager

      * 37.8.58. "Carbon.Windows" — Window Manager constants

    * 37.9. "ColorPicker" — Color selection dialog

  * 38. MacPython OSA Modules

    * 38.1. "gensuitemodule" — Generate OSA stub packages

    * 38.2. "aetools" — OSA client support

    * 38.3. "aepack" — Conversion between Python variables and
      AppleEvent data containers

    * 38.4. "aetypes" — AppleEvent objects

    * 38.5. "MiniAEFrame" — Open Scripting Architecture server
      support

      * 38.5.1. AEServer Objects

  * 39. SGI IRIX Specific Services

    * 39.1. "al" — Audio functions on the SGI

      * 39.1.1. Configuration Objects

      * 39.1.2. Port Objects

    * 39.2. "AL" — Constants used with the "al" module

    * 39.3. "cd" — CD-ROM access on SGI systems

      * 39.3.1. Player Objects

      * 39.3.2. Parser Objects

    * 39.4. "fl" — FORMS library for graphical user interfaces

      * 39.4.1. Functions Defined in Module "fl"

      * 39.4.2. Form Objects

      * 39.4.3. FORMS Objects

    * 39.5. "FL" — Constants used with the "fl" module

    * 39.6. "flp" — Functions for loading stored FORMS designs

    * 39.7. "fm" — *Font Manager* interface

    * 39.8. "gl" — *Graphics Library* interface

    * 39.9. "DEVICE" — Constants used with the "gl" module

    * 39.10. "GL" — Constants used with the "gl" module

    * 39.11. "imgfile" — Support for SGI imglib files

    * 39.12. "jpeg" — Read and write JPEG files

  * 40. SunOS Specific Services

    * 40.1. "sunaudiodev" — Access to Sun audio hardware

      * 40.1.1. Audio Device Objects

    * 40.2. "SUNAUDIODEV" — Constants used with "sunaudiodev"

  * 41. Modules non Documentés

    * 41.1. Miscellaneous useful utilities

    * 41.2. Modules spécifiques à une plateforme

    * 41.3. Multimedia

    * 41.4. Undocumented Mac OS modules

      * 41.4.1. "applesingle" — AppleSingle decoder

      * 41.4.2. "buildtools" — Helper module for BuildApplet and
        Friends

      * 41.4.3. "cfmfile" — Code Fragment Resource module

      * 41.4.4. "icopen" — Internet Config replacement for "open()"

      * 41.4.5. "macerrors" — Mac OS Errors

      * 41.4.6. "macresource" — Locate script resources

      * 41.4.7. "Nav" — NavServices calls

      * 41.4.8. "PixMapWrapper" — Wrapper for PixMap objects

      * 41.4.9. "videoreader" — Read QuickTime movies

      * 41.4.10. "W" — Widgets built on "FrameWork"

    * 41.5. Obsolete

    * 41.6. SGI-specific Extension modules

* Extension et intégration de l’interpréteur Python

  * 1. Étendre Python en C ou C++

    * 1.1. Un exemple simple

    * 1.2. Intermezzo: Les erreurs et exceptions

    * 1.3. Retour vers l’exemple

    * 1.4. The Module’s Method Table and Initialization Function

    * 1.5. Compilation and Linkage

    * 1.6. Calling Python Functions from C

    * 1.7. Extracting Parameters in Extension Functions

    * 1.8. Keyword Parameters for Extension Functions

    * 1.9. Building Arbitrary Values

    * 1.10. Reference Counts

      * 1.10.1. Reference Counting in Python

      * 1.10.2. Ownership Rules

      * 1.10.3. Thin Ice

      * 1.10.4. NULL Pointers

    * 1.11. Writing Extensions in C++

    * 1.12. Providing a C API for an Extension Module

  * 2. Defining New Types

    * 2.1. The Basics

      * 2.1.1. Adding data and methods to the Basic example

      * 2.1.2. Providing finer control over data attributes

      * 2.1.3. Supporting cyclic garbage collection

      * 2.1.4. Subclassing other types

    * 2.2. Type Methods

      * 2.2.1. Finalization and De-allocation

      * 2.2.2. Object Presentation

      * 2.2.3. Attribute Management

        * 2.2.3.1. Generic Attribute Management

        * 2.2.3.2. Type-specific Attribute Management

      * 2.2.4. Object Comparison

      * 2.2.5. Abstract Protocol Support

      * 2.2.6. Weak Reference Support

      * 2.2.7. More Suggestions

  * 3. Construire les extensions C et C++ avec *distutils*

    * 3.1. Distribuer vos modules d’extension

  * 4. Construire des extensions C et C++ sur Windows

    * 4.1. Une approche « recette de cuisine »

    * 4.2. Différences entre Unix et Windows

    * 4.3. Utiliser les DLL en pratique

  * 5. Intégrer Python dans une autre application

    * 5.1. Intégration de très haut niveau

    * 5.2. Au delà de l’intégration de haut niveau: survol

    * 5.3. Intégration pure

    * 5.4. Étendre un Python intégré

    * 5.5. Intégrer Python dans du C++

    * 5.6. Compiler et Lier en environnement Unix ou similaire

* Manuel de référence de l’API Python/C

  * Introduction

    * Include Files

    * Objects, Types and Reference Counts

      * Reference Counts

        * Reference Count Details

      * Types

    * Exceptions

    * Embedding Python

    * Debugging Builds

  * The Very High Level Layer

  * Reference Counting

  * Gestion des exceptions

    * Objets exception Unicode

    * Contrôle de la récursion

    * Exceptions standards

    * Standard Warning Categories

    * Exceptions standards

  * Utilitaires

    * Operating System Utilities

    * System Functions

    * Process Control

    * Importer des modules

    * Data marshalling support

    * Analyse des arguments et construction des valeurs

    * Conversion et formatage de chaînes

    * Reflection

    * Codec registry and support functions

      * Codec lookup API

      * Registry API for Unicode encoding error handlers

  * Couche d’abstraction des objets

    * Object Protocol

    * Number Protocol

    * Sequence Protocol

    * Mapping Protocol

    * Protocole d’itération

    * Ancien *Buffer Protocol*

  * Couche des objets concrets

    * Objets fondamentaux

      * Objets type

      * L’objet "None"

    * Objets numériques

      * Objets association

      * Les objets booléens

      * Long Integer Objects

      * Floating Point Objects

      * Objets nombres complexes

        * Nombres complexes en tant que structures C

        * Nombres complexes en tant qu’objets Python

    * Objets séquences

      * Objets tableau d’octets

        * Macros de vérification de type

        * Fonctions directes sur l’API

        * Macros

      * String/Bytes Objects

      * Unicode Objects and Codecs

        * Unicode Objects

          * Unicode Type

          * Unicode Character Properties

          * Plain Py_UNICODE

          * wchar_t Support

        * Built-in Codecs

          * Generic Codecs

          * UTF-8 Codecs

          * UTF-32 Codecs

          * UTF-16 Codecs

          * UTF-7 Codecs

          * Unicode-Escape Codecs

          * Raw-Unicode-Escape Codecs

          * Latin-1 Codecs

          * ASCII Codecs

          * Character Map Codecs

          * MBCS codecs for Windows

          * Methods & Slots

        * Methods and Slot Functions

      * Objets de type MemoryView

        * The new-style Py_buffer struct

        * Fonctions relatives aux tampons

        * Objets de type MemoryView

        * Autres objets

      * Tuple Objects

      * List Objects

    * Objets association

      * Objets dictionnaires

    * Autres objets

      * Class and Instance Objects

      * Objets fonctions

      * Objets méthode

      * Objets fichiers

      * Module Objects

      * Itérateurs

      * Les descripteurs

      * Slice Objects

      * Ellipsis Object

      * Weak Reference Objects

      * Capsules

      * Objets Cellules

      * Objets Cellules

      * Objets générateur

      * Objets DateTime

      * Set Objects

      * Objets code

  * Initialization, Finalization, and Threads

    * Initializing and finalizing the interpreter

    * Process-wide parameters

    * Thread State and the Global Interpreter Lock

      * Releasing the GIL from extension code

      * Non-Python created threads

      * High-level API

      * Low-level API

    * Sub-interpreter support

      * Bugs and caveats

    * Asynchronous Notifications

    * Profiling and Tracing

    * Support avancé du débogueur

  * Memory Management

    * Overview

    * Memory Interface

    * Object allocators

    * The pymalloc allocator

    * Exemples

  * Implémentation d’objets

    * Allouer des objets dans le tas

    * Common Object Structures

    * Objets type

    * Number Object Structures

    * Mapping Object Structures

    * Sequence Object Structures

    * Buffer Object Structures

    * Supporting Cyclic Garbage Collection

* Distribuer des modules Python

  * Vocabulaire

  * Licence libre et collaboration

  * Installer les outils

  * Lire le manuel

  * Comment puis-je …?

    * … choisir un nom pour mon projet ?

    * … créer et distribuer des extensions binaires ?

* Installation de modules Python

  * Vocabulaire

  * Utilisation de base

  * Comment puis-je …?

    * … installe "pip" pour des versions de Python antérieurs à la
      2.7.9 ?

    * … Installer des paquets juste pour l’utilisateur actuel ?

    * … Installer des paquets Python scientifiques ?

    * … Travailler avec plusieurs versions de Python installés en
      parallèle ?

  * Les problèmes d’installation typiques

    * Installer dans le Python du système sur Linux

    * Pip not installed

    * Installation d’extensions binaires

* Les HOWTOs de Python

  * Porting Python 2 Code to Python 3

    * The Short Explanation

    * Détails

      * Drop support for Python 2.6 and older

      * Make sure you specify the proper version support in your
        "setup.py" file

      * Have good test coverage

      * Learn the differences between Python 2 & 3

      * Update your code

        * Division

        * Text versus binary data

        * Use feature detection instead of version detection

      * Prevent compatibility regressions

      * Check which dependencies block your transition

      * Update your "setup.py" file to denote Python 3 compatibility

      * Use continuous integration to stay compatible

      * Consider using optional static type checking

  * Porting Extension Modules to Python 3

    * Conditional compilation

    * Changes to Object APIs

      * str/unicode Unification

      * long/int Unification

    * Module initialization and state

    * CObject replaced with Capsule

    * Other options

  * Curses Programming with Python

    * What is curses?

      * The Python curses module

    * Starting and ending a curses application

    * Windows and Pads

    * Displaying Text

      * Attributes and Color

    * User Input

    * For More Information

  * Guide pour l’utilisation des descripteurs

    * Résumé

    * Définition et introduction

    * Protocole descripteur

    * Invocation des descripteurs

    * Exemple de descripteur

    * Propriétés

    * Fonctions et méthodes

    * Méthodes statiques et méthodes de classe

  * Idioms and Anti-Idioms in Python

    * Language Constructs You Should Not Use

      * from module import *

        * Inside Function Definitions

        * At Module Level

        * When It Is Just Fine

      * Unadorned "exec", "execfile()" and friends

      * from module import name1, name2

      * except:

    * Exceptions

    * Using the Batteries

    * Using Backslash to Continue Statements

  * Functional Programming HOWTO

    * Introduction

      * Formal provability

      * Modularity

      * Ease of debugging and testing

      * Composability

    * Itérateurs

      * Data Types That Support Iterators

    * Generator expressions and list comprehensions

    * Générateurs

      * Passing values into a generator

    * Fonctions natives

    * Small functions and the lambda expression

    * The itertools module

      * Creating new iterators

      * Calling functions on elements

      * Selecting elements

      * Grouping elements

    * The functools module

      * The operator module

    * Revision History and Acknowledgements

    * Références

      * General

      * Python-specific

      * Python documentation

  * Logging HOWTO

    * Basic Logging Tutorial

      * When to use logging

      * A simple example

      * Logging to a file

      * Logging from multiple modules

      * Logging variable data

      * Changing the format of displayed messages

      * Displaying the date/time in messages

      * Next Steps

    * Advanced Logging Tutorial

      * Logging Flow

      * Loggers

      * Handlers

      * Formatters

      * Configuring Logging

      * What happens if no configuration is provided

      * Configuring Logging for a Library

    * Logging Levels

      * Custom Levels

    * Useful Handlers

    * Exceptions raised during logging

    * Using arbitrary objects as messages

    * Optimization

  * Logging Cookbook

    * Using logging in multiple modules

    * Logging from multiple threads

    * Multiple handlers and formatters

    * Logging to multiple destinations

    * Configuration server example

    * Sending and receiving logging events across a network

    * Adding contextual information to your logging output

      * Using LoggerAdapters to impart contextual information

        * Using objects other than dicts to pass contextual
          information

      * Using Filters to impart contextual information

    * Logging to a single file from multiple processes

    * Using file rotation

    * An example dictionary-based configuration

    * Inserting a BOM into messages sent to a SysLogHandler

    * Implementing structured logging

    * Customizing handlers with "dictConfig()"

    * Configuring filters with "dictConfig()"

    * Customized exception formatting

    * Speaking logging messages

    * Buffering logging messages and outputting them conditionally

    * Formatting times using UTC (GMT) via configuration

    * Using a context manager for selective logging

  * Guide des expressions régulières

    * Introduction

    * Motifs simples

      * Correspondance de caractères

      * Répétitions

    * Utilisation des expressions régulières

      * Compilation des expressions régulières

      * La maudite barre oblique inverse

      * Recherche de correspondances

      * Fonctions de niveau module

      * Options de compilation

    * Des motifs plus puissants

      * Plus de métacaractères

      * Regroupement

      * Groupes non de capture et groupes nommés

      * Assertions prédictives

    * Modification de chaînes

      * Découpage de chaînes

      * Recherche et substitution

    * Problèmes classiques

      * Utilisez les méthodes du type *string*

      * *match()* contre *search()*

      * Glouton contre non-glouton

      * Utilisez *re.VERBOSE*

    * Vos commentaires

  * Socket Programming HOWTO

    * Interfaces de connexion (*sockets*)

      * Historique

    * Créer un *socket*

      * IPC

    * Using a Socket

      * Binary Data

    * Disconnecting

      * When Sockets Die

    * Non-blocking Sockets

      * Performance

  * Guide pour le tri

    * Les bases du tri

    * Fonctions clef

    * Fonctions du module *operator*

    * Ascendant et descendant

    * Stabilité des tris et tris complexes

    * La méthode traditionnelle utilisant Decorate-Sort-Undecorate

    * La méthode traditionnelle d’utiliser le paramètre *cmp*

    * Curiosités et conclusion

  * Unicode HOWTO

    * Introduction to Unicode

      * History of Character Codes

      * Definitions

      * Encodings

      * Références

    * Python 2.x’s Unicode Support

      * The Unicode Type

      * Unicode Literals in Python Source Code

      * Unicode Properties

      * Références

    * Reading and Writing Unicode Data

      * Unicode filenames

      * Tips for Writing Unicode-aware Programs

      * Références

    * Revision History and Acknowledgements

  * HOWTO Fetch Internet Resources Using urllib2

    * Introduction

    * Fetching URLs

      * Data

      * Headers

    * Gestion des exceptions

      * URLError

      * HTTPError

        * Error Codes

      * Wrapping it Up

        * Number 1

        * Number 2

    * info and geturl

    * Openers and Handlers

    * Basic Authentication

    * Proxies

    * Sockets and Layers

    * Notes

  * HOWTO Use Python in the web

    * The Low-Level View

      * Common Gateway Interface

        * Simple script for testing CGI

        * Setting up CGI on your own server

        * Common problems with CGI scripts

      * mod_python

      * FastCGI and SCGI

        * Setting up FastCGI

      * mod_wsgi

    * Step back: WSGI

      * WSGI Servers

      * Case study: MoinMoin

    * Model-View-Controller

    * Ingredients for Websites

      * Templates

      * Data persistence

    * Frameworks

      * Some notable frameworks

        * Django

        * TurboGears

        * Zope

        * Other notable frameworks

  * Tutoriel *argparse*

    * Concepts

    * Les bases

    * Introduction aux arguments positionnels

    * Introduction aux arguments optionnels

      * Les paramètres raccourcis

    * Combinaison d’arguments positionnels et optionnels

    * Aller un peu plus loin

      * Paramètres en conflit

    * Conclusion

* Questions fréquemment posées sur Python

  * FAQ générale sur Python

    * Informations générales

    * Python c’est le monde réel

    * Upgrading Python

  * Programming FAQ

    * General Questions

    * Core Language

    * Nombres et chaînes de caractères

    * Sequences (Tuples/Lists)

    * Dictionnaires

    * Objets

    * Modules

  * FAQ histoire et design

    * Pourquoi Python utilise-t-il l’indentation pour grouper les
      instructions ?

    * Pourquoi ai-je d’étranges résultats suite à de simples
      opérations arithmétiques ?

    * Pourquoi les calculs à virgules flottantes sont si imprécis ?

    * Pourquoi les chaînes de caractères Python sont-elles immuables
      ?

    * Pourquoi « self » doit-il être explicitement utilisé dans les
      définitions et les appels de méthode ?

    * Pourquoi ne puis-je pas utiliser d’assignation dans une
      expression ?

    * Pourquoi Python utilise des méthodes pour certaines
      fonctionnalités (ex : "list.index()") mais des fonctions pour
      d’autres (ex : "len(list)") ?

    * Pourquoi "join()" est une méthode de chaîne plutôt qu’une de
      liste ou de tuple ?

    * À quel point les exceptions sont-elles rapides ?

    * Pourquoi n’y a-t-il pas une instruction *switch* ou une
      structure similaire à *switch / case* en Python ?

    * Est-il possible d’émuler des fils d’exécution dans
      l’interpréteur plutôt que se baser sur les implémentations
      spécifique aux OS ?

    * Pourquoi les expressions lambda ne peuvent pas contenir
      d’instructions ?

    * Python peut-il être compilé en code machine, en C ou dans un
      autre langage ?

    * Comment Python gère la mémoire ?

    * Why isn’t all memory freed when Python exits?

    * Pourquoi les *tuples* et les *list* sont deux types de données
      séparés ?

    * How are lists implemented in CPython?

    * How are dictionaries implemented in CPython?

    * Pourquoi les clés du dictionnaire sont immuables ?

    * Why doesn’t list.sort() return the sorted list?

    * How do you specify and enforce an interface spec in Python?

    * Pourquoi n’y a-t-il pas de "goto" en Python ?

    * Why can’t raw strings (r-strings) end with a backslash?

    * Pourquoi la déclaration "with" pour les assignations
      d’attributs n’existe pas en Python ?

    * Why are colons required for the if/while/def/class statements?

    * Why does Python allow commas at the end of lists and tuples?

  * FAQ sur la bibliothèque et les extension

    * Questions générales sur la bibliothèque

    * Common tasks

    * Threads

    * Les entrées/sorties

    * Network/Internet Programming

    * Databases

    * Mathematics and Numerics

  * FAQ extension/intégration

    * Puis-je créer mes propres fonctions en C ?

    * Puis-je créer mes propres fonctions en C++ ?

    * Écrire directement en C est difficile ; existe-t-il des
      alternatives ?

    * How can I execute arbitrary Python statements from C?

    * How can I evaluate an arbitrary Python expression from C?

    * How do I extract C values from a Python object?

    * How do I use Py_BuildValue() to create a tuple of arbitrary
      length?

    * How do I call an object’s method from C?

    * How do I catch the output from PyErr_Print() (or anything that
      prints to stdout/stderr)?

    * How do I access a module written in Python from C?

    * How do I interface to C++ objects from Python?

    * I added a module using the Setup file and the make fails; why?

    * How do I debug an extension?

    * I want to compile a Python module on my Linux system, but some
      files are missing. Why?

    * What does « SystemError: _PyImport_FixupExtension: module
      yourmodule not loaded » mean?

    * How do I tell « incomplete input » from « invalid input »?

    * How do I find undefined g++ symbols __builtin_new or
      __pure_virtual?

    * Can I create an object class with some methods implemented in
      C and others in Python (e.g. through inheritance)?

    * When importing module X, why do I get « undefined symbol:
      PyUnicodeUCS2* »?

  * FAQ : Python et Windows

    * Comment exécuter un programme Python sous Windows ?

    * Comment rendre des scripts Python exécutables ?

    * Pourquoi Python met-il du temps à démarrer ?

    * Comment construire un exécutable depuis un script Python ?

    * Est-ce qu’un fichier "*.pyd" est la même chose qu’une DLL ?

    * How can I embed Python into a Windows application?

    * Comment empêcher mon éditeur d’utiliser des tabulations dans
      mes fichiers Python ?

    * How do I check for a keypress without blocking?

    * How do I emulate os.kill() in Windows?

    * Comment décompresser la documentation téléchargée sous Windows
      ?

  * FAQ interface graphique

    * Quelles boites à outils multi-plateforme existe-t-il sur
      Python ?

    * What platform-specific GUI toolkits exist for Python?

    * Tkinter questions

  * « Pourquoi Python est installé sur mon ordinateur ? » FAQ

    * Qu’est-ce que Python ?

    * Pourquoi Python est installé sur ma machine ?

    * Puis-je supprimer Python ?

* Glossaire

* À propos de ces documents

  * Contributeurs de la documentation Python

* Rapporter des bogues

  * Bogues de documentation

  * Utilisation du gestionnaire de ticket Python

  * Commencer à contribuer à Python vous-même

* Copyright

* Histoire et licence

  * Histoire du logiciel

  * Conditions générales pour accéder à, ou utiliser, Python

    * PSF LICENSE AGREEMENT FOR PYTHON 2.7.15

    * LICENCE D’UTILISATION BEOPEN.COM POUR PYTHON 2.0

    * LICENCE D’UTILISATION CNRI POUR PYTHON 1.6.1

    * LICENCE D’UTILISATION CWI POUR PYTHON 0.9.0 à 1.2

  * Licences et Remerciements pour les logiciels inclus

    * Mersenne twister

    * Interfaces de connexion (*sockets*)

    * Virgule flottante et contrôle d’exception

    * MD5 message digest algorithm

    * Interfaces de connexion asynchrones

    * Gestion de témoin (*cookie*)

    * Traçage d’exécution

    * Les fonctions UUencode et UUdecode

    * Appel de procédures distantes en XML (*RPC*, pour *Remote
      Procedure Call*)

    * test_epoll

    * Select kqueue

    * *strtod* et *dtoa*

    * OpenSSL

    * expat

    * libffi

    * zlib
