[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

Raymond Hettinger report at bugs.python.org
Sat Feb 26 02:26:13 CET 2011


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

> If you agree, Raymond, I'll backport the patch.

Yes.  That will address Antoine's legitimate concern about making other backports harder, and it will get all the Python's to use the canonical spelling.

For other spellings like "utf8" or "latin1", I wonder if it would be useful to emit a warning/suggestion to use the standard spelling.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11303>
_______________________________________


More information about the Python-bugs-list mailing list