summaryrefslogtreecommitdiffstats
path: root/Python/context.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-26 22:39:49 (GMT)
committerGitHub <noreply@github.com>2022-05-26 22:39:49 (GMT)
commit5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0 (patch)
tree07570f1aa71c277b9d4f96cf25b50ed10b6d8e3c /Python/context.c
parentefc5d37671d2b9f31850a9edaa495fadae038759 (diff)
downloadcpython-5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0.zip
cpython-5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0.tar.gz
cpython-5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0.tar.bz2
gh-91924: Optimize unicode_check_encoding_errors() (#93200)
Avoid _PyCodec_Lookup() and PyCodec_LookupError() for most common built-in encodings and error handlers to avoid creating a temporary Unicode string object, whereas these encodings and error handlers are known to be valid.
Diffstat (limited to 'Python/context.c')
0 files changed, 0 insertions, 0 deletions