]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973) (#134974)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Jun 2025 12:37:26 +0000 (14:37 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Jun 2025 12:37:26 +0000 (14:37 +0200)
commit3d69d1832209ef6e3fd9afacad3b5b8bd8a5f465
tree7376bc8fc9e7f057c779046d7549f4bc1990e470
parentdba307a757db7db93f208603735f251ce52f1bdf
[3.14] gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973) (#134974)

gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)

Replace most PyUnicodeWriter_WriteUTF8() calls with
PyUnicodeWriter_WriteASCII().

(cherry picked from commit f49a07b531543dd8a42d90f5b1c89c0312fbf806)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 files changed:
Doc/c-api/unicode.rst
Doc/whatsnew/3.14.rst
Include/cpython/unicodeobject.h
Lib/test/test_capi/test_unicode.py
Misc/NEWS.d/next/C_API/2025-05-13-16-06-46.gh-issue-133968.6alWst.rst [new file with mode: 0644]
Modules/_json.c
Modules/_ssl.c
Modules/_testcapi/unicode.c
Objects/genericaliasobject.c
Objects/typevarobject.c
Objects/unicodeobject.c
Objects/unionobject.c
Parser/asdl_c.py
Python/Python-ast.c
Python/context.c
Python/hamt.c