diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-20 17:29:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 17:29:27 (GMT) |
commit | d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44 (patch) | |
tree | 371af41d6ec06a2d00f17212d1047d2b026ec9d3 /Doc | |
parent | 264f4af506bf5b587105eab37fcfb7dfa62d6587 (diff) | |
download | cpython-d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44.zip cpython-d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44.tar.gz cpython-d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/data/stable_abi.dat | 1 | ||||
-rw-r--r-- | Doc/whatsnew/3.13.rst | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Doc/data/stable_abi.dat b/Doc/data/stable_abi.dat index 811b1bd..52d6d96 100644 --- a/Doc/data/stable_abi.dat +++ b/Doc/data/stable_abi.dat @@ -726,6 +726,7 @@ function,PyUnicode_AsUCS4,3.7,, function,PyUnicode_AsUCS4Copy,3.7,, function,PyUnicode_AsUTF16String,3.2,, function,PyUnicode_AsUTF32String,3.2,, +function,PyUnicode_AsUTF8,3.13,, function,PyUnicode_AsUTF8AndSize,3.10,, function,PyUnicode_AsUTF8String,3.2,, function,PyUnicode_AsUnicodeEscapeString,3.2,, diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 34e4d67..5da5f93 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1069,6 +1069,9 @@ New Features limited C API. (Contributed by Victor Stinner in :gh:`85283`.) +* Add :c:func:`PyUnicode_AsUTF8` function to the limited C API. + (Contributed by Victor Stinner in :gh:`111089`.) + Porting to Python 3.13 ---------------------- |