On Wed, Feb 23, 2011 at 4:23 PM, M.-A. Lemburg <m...@egenix.com> wrote:
..
> "Latin-1" is the official name and the one used internally by Python,
> so it would be good to have the test suite and Python code in general
> to use that variant of the name (just as "utf-8" is preferred over
> "utf8").
>
> Instead of adding more aliases to the C code, please change the
> encoding names in the stdlib and test suite.

I cannot agree with you on this one.  Official or not, "latin-1" is
much less commonly used than "latin1".   Currently decode("latin1") is
10x slower than  decode("latin-1") on short strings.  We already have
a check for "iso-8859-1" alias in PyUnicode_AsEncodedString().  Adding
"latin1" (and possibly "utf8" as well) is likely to speed up many
applications at minimal cost.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to