Skip to content

Commit 41f7350

Browse files
authored
gh-106320: Document private C APIs promoted to public C API (#128788)
1 parent b70a567 commit 41f7350

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Doc/whatsnew/3.14.rst

+24
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,30 @@ Porting to Python 3.14
12721272
implementation details.
12731273
(Contributed by Victor Stinner in :gh:`120600` and :gh:`124127`.)
12741274

1275+
* Private functions promoted to public C APIs:
1276+
1277+
* ``_PyBytes_Join()``: :c:func:`PyBytes_Join`;
1278+
* ``_PyLong_IsNegative()``: :c:func:`PyLong_IsNegative`;
1279+
* ``_PyLong_IsPositive()``: :c:func:`PyLong_IsPositive`;
1280+
* ``_PyLong_IsZero()``: :c:func:`PyLong_IsZero`;
1281+
* ``_PyLong_Sign()``: :c:func:`PyLong_GetSign`;
1282+
* ``_PyUnicodeWriter_Dealloc()``: :c:func:`PyUnicodeWriter_Discard`;
1283+
* ``_PyUnicodeWriter_Finish()``: :c:func:`PyUnicodeWriter_Finish`;
1284+
* ``_PyUnicodeWriter_Init()``: :c:func:`PyUnicodeWriter_Create`;
1285+
* ``_PyUnicodeWriter_WriteChar()``: :c:func:`PyUnicodeWriter_WriteChar`;
1286+
* ``_PyUnicodeWriter_WriteStr()``: :c:func:`PyUnicodeWriter_WriteStr`;
1287+
* ``_PyUnicodeWriter_WriteSubstring()``: :c:func:`PyUnicodeWriter_WriteSubstring`;
1288+
* ``_PyUnicode_EQ()``: :c:func:`PyUnicode_Equal`;
1289+
* ``_PyUnicode_Equal()``: :c:func:`PyUnicode_Equal`;
1290+
* ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`;
1291+
* ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`;
1292+
* ``_Py_fopen_obj()``: :c:func:`Py_fopen`.
1293+
1294+
The `pythoncapi-compat project`_ can be used to get most of these new
1295+
functions on Python 3.13 and older.
1296+
1297+
.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/
1298+
12751299

12761300
Deprecated
12771301
----------

0 commit comments

Comments
 (0)