[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')
Ezio Melotti
report at bugs.python.org
Thu Feb 24 17:43:39 CET 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
> That won't work, Victor, since it makes invalid encoding
> names valid, e.g. 'utf(=)-8'.
That already works in Python (thanks to encodings.normalize_encoding).
The problem with the patch is that it makes names like 'iso88591' valid.
Normalize to 'iso 8859 1' should solve this problem.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11303>
_______________________________________
More information about the Python-bugs-list
mailing list