]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)
authorVictor Stinner <vstinner@python.org>
Thu, 29 May 2025 14:54:30 +0000 (16:54 +0200)
committerGitHub <noreply@github.com>
Thu, 29 May 2025 14:54:30 +0000 (14:54 +0000)
commitf49a07b531543dd8a42d90f5b1c89c0312fbf806
treea8cb359e20f0222007e76570cfd92f344fcebcfc
parent4109a9c6b33faa0032ffc95d96cd0db482af3ce2
gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)

Replace most PyUnicodeWriter_WriteUTF8() calls with
PyUnicodeWriter_WriteASCII().

Unrelated change to please the linter: remove an unused
import in test_ctypes.

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
17 files changed:
Doc/c-api/unicode.rst
Doc/whatsnew/3.15.rst
Include/cpython/unicodeobject.h
Lib/test/test_capi/test_unicode.py
Lib/test/test_ctypes/test_incomplete.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