Marc-Andre Lemburg <m...@egenix.com> added the comment: Raymond Hettinger wrote: > > Raymond Hettinger <rhettin...@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.
Ok, I'll backport both the normalization and Alexander's patch. > For other spellings like "utf8" or "latin1", I wonder if it would be useful > to emit a warning/suggestion to use the standard spelling. While it would make sense for Python programs, it would not for cases where the encoding is read from some other source, e.g. an XML encoding declaration. However, perhaps we could have a warning which is disabled per default and can be enabled using the -W option. ---------- 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 <rep...@bugs.python.org> <http://bugs.python.org/issue11303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com