This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, lemburg
Date 2011-02-23.22:34:54
SpamBayes Score 2.2692491e-05
Marked as misclassified No
Message-id <1298500498.32.0.859922693155.issue11303@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python.exe -m timeit "b'x'.decode('latin1')"
100000 loops, best of 3: 2.57 usec per loop
$ ./python.exe -m timeit "b'x'.decode('latin-1')"
1000000 loops, best of 3: 0.336 usec per loop

The reason for this behavior is that 'latin-1' is short-circuited in C code while 'latin1' has to be looked up in aliases.py.  Attached patch fixes this issue.
History
Date User Action Args
2011-02-23 22:34:58belopolskysetrecipients: + belopolsky, lemburg
2011-02-23 22:34:58belopolskysetmessageid: <1298500498.32.0.859922693155.issue11303@psf.upfronthosting.co.za>
2011-02-23 22:34:55belopolskylinkissue11303 messages
2011-02-23 22:34:55belopolskycreate