summaryrefslogtreecommitdiff
path: root/Python/dynamic_annotations.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-09 01:39:28 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-10-09 01:39:28 +0200
commite7bf86cd7d7c9a3924501875a08c4ef4a0063103 (patch)
treee0097b0f4fb0194d233d1d9f58bf8570815873c3 /Python/dynamic_annotations.c
parentfdfbf781140f22619b0ef6bfeac792496774bb69 (diff)
downloadcpython-git-e7bf86cd7d7c9a3924501875a08c4ef4a0063103.tar.gz
Optimize backslashreplace error handler
Issue #25318: Optimize backslashreplace and xmlcharrefreplace error handlers in UTF-8 encoder. Optimize also backslashreplace error handler for ASCII and Latin1 encoders. Use the new _PyBytesWriter API to optimize these error handlers for the encoders. It avoids to create an exception and call the slow implementation of the error handler.
Diffstat (limited to 'Python/dynamic_annotations.c')
0 files changed, 0 insertions, 0 deletions