STINNER Victor added the comment: Short summary.
Ok, I optimized ASCII, Latin1 and UTF-8 codecs (encoders and decoders) for the most common error handlers. * ASCII and Latin1 encoders: surrogateescape, replace, ignore, backslashreplace, xmlcharrefreplace * ASCII decoder: surrogateescape, replace, ignore * (Latin1 decoder cannot fail) * UTF-8 encoder: surrogateescape, surrogatepass, replace, ignore, backslashreplace, xmlcharrefreplace * UTF-8 decoder: surrogateescape, replace, ignore The code to handle other error handlers in encoders has also be optimized. Surrogateescape has now an efficent implementation for ASCII, Latin1 and UTF-8 encoders and decoders. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24870> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com