Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106320: Document private C APIs promoted to public C API #128788

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,30 @@ Porting to Python 3.14
implementation details.
(Contributed by Victor Stinner in :gh:`120600` and :gh:`124127`.)

* Private functions promoted to public C APIs:

* ``_PyBytes_Join()``: :c:func:`PyBytes_Join`;
* ``_PyLong_IsNegative()``: :c:func:`PyLong_IsNegative`;
* ``_PyLong_IsPositive()``: :c:func:`PyLong_IsPositive`;
* ``_PyLong_IsZero()``: :c:func:`PyLong_IsZero`;
* ``_PyLong_Sign()``: :c:func:`PyLong_GetSign`;
* ``_PyUnicodeWriter_Dealloc()``: :c:func:`PyUnicodeWriter_Discard`;
* ``_PyUnicodeWriter_Finish()``: :c:func:`PyUnicodeWriter_Finish`;
* ``_PyUnicodeWriter_Init()``: :c:func:`PyUnicodeWriter_Create`;
* ``_PyUnicodeWriter_WriteChar()``: :c:func:`PyUnicodeWriter_WriteChar`;
* ``_PyUnicodeWriter_WriteStr()``: :c:func:`PyUnicodeWriter_WriteStr`;
* ``_PyUnicodeWriter_WriteSubstring()``: :c:func:`PyUnicodeWriter_WriteSubstring`;
* ``_PyUnicode_EQ()``: :c:func:`PyUnicode_Equal`;
* ``_PyUnicode_Equal()``: :c:func:`PyUnicode_Equal`;
* ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`;
* ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`;
* ``_Py_fopen_obj()``: :c:func:`Py_fopen`.

The `pythoncapi-compat project`_ can be used to get most of these new
functions on Python 3.13 and older.

.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/


Deprecated
----------
Expand Down
Loading