[issue37388] unknown error handlers should be reported early

STINNER Victor report at bugs.python.org
Mon Jun 24 10:15:11 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

Getting an error handler is expensive compared to the time to encode text/decode bytes. Python loads the error handler lazily to provide best performances. Text codecs are performance critical for Python.

If we add a check, it should only be enabled in development (python3 -X dev) and/or debug mode (./configure --with-pydebug).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37388>
_______________________________________


More information about the Python-bugs-list mailing list