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 lemburg
Recipients belopolsky, eric.araujo, ezio.melotti, jcea, lemburg
Date 2011-02-24.09:04:36
SpamBayes Score 1.1328398e-09
Marked as misclassified No
Message-id <4D661F23.2070804@egenix.com>
In-reply-to <1298506836.17.0.847505339569.issue11303@psf.upfronthosting.co.za>
Content
Alexander Belopolsky wrote:
> 
> Alexander Belopolsky <belopolsky@users.sourceforge.net> added the comment:
> 
> In issue11303.diff, I add similar optimization for encode('latin1') and for 'utf8' variant of utf-8.  I don't think dash-less variants of utf-16 and utf-32 are common enough to justify special-casing.

Looks good.

Given that we are starting to have a whole set of such aliases
in the C code, I wonder whether it would be better to make the
string comparisons more efficient, e.g.
if "utf" matches, the checks could then continue with "8" or "-8"
instead of trying to match "utf" again and again.
History
Date User Action Args
2011-02-24 09:04:37lemburgsetrecipients: + lemburg, jcea, belopolsky, ezio.melotti, eric.araujo
2011-02-24 09:04:36lemburglinkissue11303 messages
2011-02-24 09:04:36lemburgcreate