Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé
Module « codecs » Python 3.13.2

Fonction make_encoding_map - module codecs

Signature de la fonction make_encoding_map

def make_encoding_map(decoding_map) 

Description

help(codecs.make_encoding_map)

Creates an encoding map from a decoding map.

If a target mapping in the decoding map occurs multiple
times, then that target is mapped to None (undefined mapping),
causing an exception when encountered by the charmap codec
during translation.

One example where this happens is cp875.py which decodes
multiple character to \u001a.



Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé