[issue41330] Inefficient error-handle for CJK encodings
Serhiy Storchaka
report at bugs.python.org
Sat Jul 18 02:50:15 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I am not even sure it was worth to add fast path for "xmlcharrefreplace". "surrogateescape" and "surrogatepass" are most likely used in performance critical cases. It is also easy to add support of "ignore" and "replace". "strict" raises an exception in any case, and "backslashreplace", "xmlcharrefreplace" and "namereplace" are too complex and used in cases when coding time is not dominant (error reporting, debugging, formatting complex documents).
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41330>
_______________________________________
More information about the Python-bugs-list
mailing list