]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133968: Update PyUnicodeWriter_WriteASCII() documentation (#135297)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Jun 2025 12:47:02 +0000 (14:47 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Jun 2025 12:47:02 +0000 (14:47 +0200)
The function was added to Python 3.14.

Doc/c-api/unicode.rst
Doc/whatsnew/3.15.rst

index 07fdcfd9729ee001b20e686ed3e8f9b3b0d065b0..84fee05cb4ce203b6c273bd840d4d9f5350ae286 100644 (file)
@@ -1827,7 +1827,7 @@ object.
    On success, return ``0``.
    On error, set an exception, leave the writer unchanged, and return ``-1``.
 
-   .. versionadded:: next
+   .. versionadded:: 3.14
 
 .. c:function:: int PyUnicodeWriter_WriteWideChar(PyUnicodeWriter *writer, const wchar_t *str, Py_ssize_t size)
 
index e5bccf17eb63e2ac6f48a49ca8246349899cdb05..88e7462f688e7077f2990d629bafc38918ac166e 100644 (file)
@@ -298,12 +298,6 @@ New features
   functions as replacements for :c:func:`PySys_GetObject`.
   (Contributed by Serhiy Storchaka in :gh:`108512`.)
 
-* Add :c:func:`PyUnicodeWriter_WriteASCII` function to write an ASCII string
-  into a :c:type:`PyUnicodeWriter`. The function is faster than
-  :c:func:`PyUnicodeWriter_WriteUTF8`, but has an undefined behavior if the
-  input string contains non-ASCII characters.
-  (Contributed by Victor Stinner in :gh:`133968`.)
-
 * Add :c:type:`PyUnstable_Unicode_GET_CACHED_HASH` to get the cached hash of
   a string. See the documentation for caveats.
   (Contributed by Petr Viktorin in :gh:`131510`)