From 788c634e18aecf5511781780120f58b3f32f9072 Mon Sep 17 00:00:00 2001 From: Vyron Vasileiadis Date: Tue, 8 Sep 2026 00:48:19 +0300 Subject: [PATCH] gh-157137: Mark the PEP 820 soft deprecations as 3.15, not `next` All seven were already in the tree at v3.15.0b1, and Doc/whatsnew/3.15.rst lists exactly those functions as 3.15 soft deprecations. The 3.15.0b1 commit rewrote 84 ":: next" tags and none of the soft-deprecated:: ones. --- Doc/c-api/module.rst | 6 +++--- Doc/c-api/type.rst | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 31df4451f15e663..e4664ef815f567c 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -853,7 +853,7 @@ struct: .. versionadded:: 3.5 - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyModule_FromSlotsAndSpec` in new code. @@ -877,7 +877,7 @@ struct: .. versionadded:: 3.5 - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyModule_FromSlotsAndSpec` in new code. @@ -887,7 +887,7 @@ struct: .. versionadded:: 3.5 - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 To run a module's own execution slots, prefer :c:func:`PyModule_Exec`, which works on modules that were not created from a diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 2e48c56bd2c5a5b..5216e09dd11bee8 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -828,7 +828,7 @@ They will continue to work, but new features will be added as slots for .. versionadded:: 3.12 - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyType_FromSlots` in new code. @@ -859,7 +859,7 @@ They will continue to work, but new features will be added as slots for Creating classes whose metaclass overrides :c:member:`~PyTypeObject.tp_new` is no longer allowed. - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyType_FromSlots` in new code. @@ -885,7 +885,7 @@ They will continue to work, but new features will be added as slots for Creating classes whose metaclass overrides :c:member:`~PyTypeObject.tp_new` is no longer allowed. - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyType_FromSlots` in new code. @@ -910,7 +910,7 @@ They will continue to work, but new features will be added as slots for Creating classes whose metaclass overrides :c:member:`~PyTypeObject.tp_new` is no longer allowed. - .. soft-deprecated:: next + .. soft-deprecated:: 3.15 Prefer :c:func:`PyType_FromSlots` in new code.