[Python-checkins] python/dist/src/Lib/encodings aliases.py, 1.29, 1.30

lemburg@users.sourceforge.net lemburg at users.sourceforge.net
Fri Oct 21 16:02:32 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/encodings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19297

Modified Files:
	aliases.py 
Log Message:
Alias iso8859_1 to latin_1 which is the same encoding, but has
a much faster codec implementation.


Index: aliases.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/aliases.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- aliases.py	9 Oct 2005 19:41:19 -0000	1.29
+++ aliases.py	21 Oct 2005 14:02:28 -0000	1.30
@@ -393,11 +393,18 @@
     'cskoi8r'            : 'koi8_r',
 
     # latin_1 codec
+    #
+    # Note that the latin_1 codec is implemented internally in C and a
+    # lot faster than the charmap codec iso8859_1 which uses the same
+    # encoding. This is why we discourage the use of the iso8859_1
+    # codec and alias it to latin_1 instead.
+    #
     '8859'               : 'latin_1',
     'cp819'              : 'latin_1',
     'csisolatin1'        : 'latin_1',
     'ibm819'             : 'latin_1',
     'iso8859'            : 'latin_1',
+    'iso8859_1'          : 'latin_1',
     'iso_8859_1'         : 'latin_1',
     'iso_8859_1_1987'    : 'latin_1',
     'iso_ir_100'         : 'latin_1',



More information about the Python-checkins mailing list