Skip to content

Commit 0e87483

Browse files
committed
Revert "pythongh-111089: Add PyUnicode_AsUTF8() to the limited C API (python#111121)"
This reverts commit d8f32be.
1 parent be7e341 commit 0e87483

File tree

7 files changed

+2
-12
lines changed

7 files changed

+2
-12
lines changed

Doc/data/stable_abi.dat

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,9 +1149,6 @@ New Features
11491149
:c:func:`PyErr_WriteUnraisable`, but allow to customize the warning mesage.
11501150
(Contributed by Serhiy Storchaka in :gh:`108082`.)
11511151

1152-
* Add :c:func:`PyUnicode_AsUTF8` function to the limited C API.
1153-
(Contributed by Victor Stinner in :gh:`111089`.)
1154-
11551152

11561153
Porting to Python 3.13
11571154
----------------------

Lib/test/test_stable_abi_ctypes.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/NEWS.d/next/C API/2023-10-20-18-07-24.gh-issue-111089.RxkyrQ.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/stable_abi.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,8 +2478,6 @@
24782478
added = '3.13'
24792479
[function.PySys_AuditTuple]
24802480
added = '3.13'
2481-
[function.PyUnicode_AsUTF8]
2482-
added = '3.13'
24832481
[function._Py_SetRefcnt]
24842482
added = '3.13'
24852483
abi_only = true

Modules/_multiprocessing/posixshmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _posixshmem_shm_open_impl(PyObject *module, PyObject *path, int flags,
4848
{
4949
int fd;
5050
int async_err = 0;
51-
const char *name = PyUnicode_AsUTF8(path);
51+
const char *name = PyUnicode_AsUTF8AndSize(path, NULL);
5252
if (name == NULL) {
5353
return -1;
5454
}
@@ -87,7 +87,7 @@ _posixshmem_shm_unlink_impl(PyObject *module, PyObject *path)
8787
{
8888
int rv;
8989
int async_err = 0;
90-
const char *name = PyUnicode_AsUTF8(path);
90+
const char *name = PyUnicode_AsUTF8AndSize(path, NULL);
9191
if (name == NULL) {
9292
return NULL;
9393
}

PC/python3dll.c

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)