Skip to content

Commit 02d02f4

Browse files
authored
gh-140550: Single What's New highlight for PEPs 793, 803 and 820 (GH-149397)
Also: a section in New Features for 793
1 parent 508b498 commit 02d02f4

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ Summary -- Release highlights
8787
* :pep:`800`: Disjoint bases in the type system
8888
* :pep:`782`: :ref:`A new PyBytesWriter C API to create a Python bytes object
8989
<whatsnew315-pybyteswriter>`
90-
* :pep:`803`: :ref:`Stable ABI for Free-Threaded Builds <whatsnew315-abi3t>`
91-
* :pep:`820`: :ref:`PySlot: Unified slot system for the C API <whatsnew315-pyslot>`
90+
* :pep:`803`, :pep:`820 <820>`, :pep:`793 <793>`:
91+
:ref:`Stable ABI for Free-Threaded Builds <whatsnew315-abi3t>` and
92+
related C API
9293
* :ref:`The JIT compiler has been significantly upgraded <whatsnew315-jit>`
9394
* :ref:`Improved error messages <whatsnew315-improved-error-messages>`
9495
* :ref:`The official Windows 64-bit binaries now use the tail-calling interpreter
@@ -453,7 +454,7 @@ agen() for x in a)``.
453454

454455
.. _whatsnew315-abi3t:
455456

456-
:pep:`803`: ``abi3t`` -- Stable ABI for Free-Threaded Builds
457+
:pep:`803` -- Stable ABI for Free-Threaded Builds
457458
------------------------------------------------------------
458459

459460
C extensions that target the :ref:`Stable ABI <stable-abi>` can now be
@@ -469,7 +470,12 @@ specifically:
469470
part of the instance struct; and
470471
- Switching from a ``PyInit_`` function to a new export hook,
471472
:c:func:`PyModExport_* <PyModExport_modulename>`, introduced for this
472-
purpose in :pep:`793`.
473+
purpose in :pep:`793`, with a new :c:type:`PySlot` structure
474+
introduced in :pep:`820`.
475+
476+
The reference documentation for these features is complete, but currently
477+
aimed at early adopters.
478+
A migration guide is planned for an upcoming beta release.
473479

474480
Note that Stable ABI does not offer all the functionality that CPython
475481
has to offer.
@@ -2199,6 +2205,11 @@ New features
21992205
* Add :c:func:`PyTuple_FromArray` to create a :class:`tuple` from an array.
22002206
(Contributed by Victor Stinner in :gh:`111489`.)
22012207

2208+
* Add a new module export hook,
2209+
:c:func:`PyModExport_* <PyModExport_modulename>`.
2210+
2211+
(Contributed by Petr Viktorin in :pep:`793` and :gh:`140550`.)
2212+
22022213
* Add functions that are guaranteed to be safe for use in
22032214
:c:member:`~PyTypeObject.tp_traverse` handlers:
22042215
:c:func:`PyObject_GetTypeData_DuringGC`,
@@ -2214,8 +2225,6 @@ New features
22142225
It should only be used for debugging.
22152226
(Contributed by Victor Stinner in :gh:`141070`.)
22162227

2217-
.. _whatsnew315-pyslot:
2218-
22192228
* Implement :pep:`820`: ``PySlot`` -- Unified slot system for the C API.
22202229
See :ref:`capi-slots` for documentation.
22212230

0 commit comments

Comments
 (0)