https://github.com/python/cpython/commit/e757c06a61ac6d73d9d0c3c08955d86f176573a1
commit: e757c06a61ac6d73d9d0c3c08955d86f176573a1
branch: main
author: Vyron Vasileiadis <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-08T21:28:40+03:00
summary:

gh-157137: Mark the PEP 820 soft deprecations as 3.15, not `next` (#157138)

files:
M Doc/c-api/module.rst
M Doc/c-api/type.rst

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.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to