STINNER Victor added the comment:

Oh, the default handler for errror handlers uses a loop to check for non-ASCII 
characters. It can be replaced with PyUnicode_IS_ASCII(str) which has a 
complexity O(1). Done in new patch.

----------
Added file: http://bugs.python.org/file40647/utf8_encoder_errors-3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25267>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to