summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-09-25 21:30:40 (GMT)
committerGitHub <noreply@github.com>2024-09-25 21:30:40 (GMT)
commit7d24ea9db3e8fdca52058629c9ba577aba3d8e5c (patch)
tree76759a5c7db017904e2005b8c618523b0ea36f22 /Doc/c-api
parent1ff1b899ce13b195d978736b78cd75ac021e64b5 (diff)
downloadcpython-7d24ea9db3e8fdca52058629c9ba577aba3d8e5c.zip
cpython-7d24ea9db3e8fdca52058629c9ba577aba3d8e5c.tar.gz
cpython-7d24ea9db3e8fdca52058629c9ba577aba3d8e5c.tar.bz2
gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)
Make `versionchanged:: next`` expand to current (unreleased) version. When a new CPython release is cut, the release manager will replace all such occurences of "next" with the just-released version. (See the issue for release-tools and devguide PRs.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/long.rst2
-rw-r--r--Doc/c-api/unicode.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 098a55c..188eec4 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -570,7 +570,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
On failure, return -1 with an exception set. This function always succeeds
if *obj* is a :c:type:`PyLongObject` or its subtype.
- .. versionadded:: 3.14
+ .. versionadded:: next
.. c:function:: PyObject* PyLong_GetInfo(void)
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 958fafd..30e26fe 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1534,7 +1534,7 @@ PyUnicodeWriter
The :c:type:`PyUnicodeWriter` API can be used to create a Python :class:`str`
object.
-.. versionadded:: 3.14
+.. versionadded:: next
.. c:type:: PyUnicodeWriter