diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-01-06 15:09:57 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-06 15:09:57 (GMT) |
commit | 1109db443efdc2451a01c3734c08fc224e9afa7e (patch) | |
tree | d7991f633ef0c347cc574ca9c3239645198d544a /Lib/test/output | |
parent | ec233e58038b222ec4cedc07ec46bed1f40468d7 (diff) | |
download | cpython-1109db443efdc2451a01c3734c08fc224e9afa7e.zip cpython-1109db443efdc2451a01c3734c08fc224e9afa7e.tar.gz cpython-1109db443efdc2451a01c3734c08fc224e9afa7e.tar.bz2 |
This patch adds a new feature to the builtin charmap codec:
the mapping dictionaries can now contain 1-n mappings, meaning
that character ordinals may be mapped to strings or Unicode object,
e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
the complete string or Unicode object instead of just one character.
Another feature introduced by the patch is that of mapping oridnals to
the emtpy string. This allows removing characters.
The patch is different from patch #103100 in that it does not cause a
performance hit for the normal use case of 1-1 mappings.
Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
Diffstat (limited to 'Lib/test/output')
-rw-r--r-- | Lib/test/output/test_charmapcodec | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/output/test_charmapcodec b/Lib/test/output/test_charmapcodec new file mode 100644 index 0000000..9b15894 --- /dev/null +++ b/Lib/test/output/test_charmapcodec @@ -0,0 +1 @@ +test_charmapcodec |