[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')
Marc-Andre Lemburg
report at bugs.python.org
Thu Feb 24 17:39:09 CET 2011
Marc-Andre Lemburg <mal at egenix.com> added the comment:
STINNER Victor wrote:
>
> STINNER Victor <victor.stinner at haypocalc.com> added the comment:
>
> Ooops, I attached the wrong patch. Here is the new fixed patch.
That won't work, Victor, since it makes invalid encoding
names valid, e.g. 'utf(=)-8'.
We really only want to add the functionality of matching
encodings names with hyphen or not.
Perhaps it's not really worth the trouble as Alexander suggests
and we should simply add the few extra cases where needed.
----------
title: b'x'.decode('latin1') is much slower than b'x'.decode('latin-1') -> b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11303>
_______________________________________
More information about the Python-bugs-list
mailing list