Skip to content

Commit fa01bf8

Browse files
committed
Add What's New & compatibility warnings
1 parent 5d2c92c commit fa01bf8

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Doc/c-api/init.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,16 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
15571557
15581558
.. versionadded:: next
15591559
1560+
.. warning::
1561+
1562+
This function was added in a bugfix release, and
1563+
extensions that use it will be incompatible with Python 3.14.0.
1564+
Most packaging tools for Python are not able to handle this
1565+
incompatibility automatically, and will need.
1566+
When using PyPA standards (wheels and source distributions),
1567+
specify ``Requires-Python: != 3.14.0.*`` in
1568+
`core metadata <https://packaging.python.org/en/latest/specifications/core-metadata/#requires-python>`_.
1569+
15601570
15611571
.. c:function:: void PyUnstable_ThreadState_ResetStackProtection(PyThreadState *tstate)
15621572
@@ -1567,6 +1577,16 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
15671577
15681578
.. versionadded:: next
15691579
1580+
.. warning::
1581+
1582+
This function was added in a bugfix release, and
1583+
extensions that use it will be incompatible with Python 3.14.0.
1584+
Most packaging tools for Python are not able to handle this
1585+
incompatibility automatically, and will need.
1586+
When using PyPA standards (wheels and source distributions),
1587+
specify ``Requires-Python: != 3.14.0.*`` in
1588+
`core metadata <https://packaging.python.org/en/latest/specifications/core-metadata/#requires-python>`_.
1589+
15701590
15711591
.. c:function:: PyInterpreterState* PyInterpreterState_Get(void)
15721592

Doc/whatsnew/3.14.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,3 +3435,13 @@ Changes in the C API
34353435
functions on Python 3.13 and older.
34363436

34373437
.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/
3438+
3439+
3440+
Notable changes in 3.14.1
3441+
=========================
3442+
3443+
* Add :c:func:`PyUnstable_ThreadState_SetStackProtection` and
3444+
:c:func:`PyUnstable_ThreadState_ResetStackProtection` functions to set
3445+
the stack protection base address and stack protection size of a Python
3446+
thread state.
3447+
(Contributed by Victor Stinner in :gh:`139653`.)

0 commit comments

Comments
 (0)