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

Marc-Andre Lemburg report at bugs.python.org
Fri Feb 25 23:59:51 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:
> 
>> r88586: Normalized the encoding names for Latin-1 and UTF-8 to
>> 'latin-1' and 'utf-8' in the stdlib.
> 
> Why did you do that? We are trying to find a solution together, and you change directly the code without any review. Your commit doesn't solve this issue.

As discussed on python-dev, the stdlib should use Python's
default names for encodings and that's what I changed.

> Your commit is now useless, can you please revert it?

This ticket was mainly discussing use cases in
3rd party applications, not code that we have control over
in the stdlib - we can easily fix that and that's what I did
with the above checkin.

----------
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