Marc-Andre Lemburg <m...@egenix.com> added the comment: Steffen Daode Nurpmeso wrote: > > Steffen Daode Nurpmeso <sdao...@googlemail.com> added the comment: > > .. i don't have actually invented this algorithm (but don't ask me where i > got the idea from years ago), i've just implemented the function you see. > The algorithm itself avoids some pitfalls in respect to combining numerics > and significantly reduces the number of possible normalization cases: > > "ISO-8859-1", "ISO8859-1", "ISO_8859-1", "LATIN1" > (+ think of additional mispellings) > all become > "iso 8859 1", "latin 1" > in the end
Please don't forget that the shortcuts in questions are *optimizations*. Programmers who don't use the encoding names triggering those optimizations will still have a running program, it'll only be a bit slower and that's perfectly fine. ---------- _______________________________________ 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