]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111089: Add PyUnicode_AsUTF8() to the limited C API (#111121)
authorVictor Stinner <vstinner@python.org>
Fri, 20 Oct 2023 17:29:27 +0000 (19:29 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 17:29:27 +0000 (19:29 +0200)
commitd8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44
tree371af41d6ec06a2d00f17212d1047d2b026ec9d3
parent264f4af506bf5b587105eab37fcfb7dfa62d6587
gh-111089: Add PyUnicode_AsUTF8() to the limited C API (#111121)

Add PyUnicode_AsUTF8() function to the limited C API.

multiprocessing posixshmem now uses PyUnicode_AsUTF8() instead of
PyUnicode_AsUTF8AndSize(): the extension is built with the limited C
API. The function now raises an exception if the filename contains an
embedded null character instead of truncating silently the filename.
Doc/data/stable_abi.dat
Doc/whatsnew/3.13.rst
Include/cpython/unicodeobject.h
Include/unicodeobject.h
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-10-20-18-07-24.gh-issue-111089.RxkyrQ.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_multiprocessing/posixshmem.c
PC/python3dll.c