https://github.com/python/cpython/commit/aaad2e81cecae01d3e7e12b2bbd2e1a8533ff5d4
commit: aaad2e81cecae01d3e7e12b2bbd2e1a8533ff5d4
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-06-09T14:47:02+02:00
summary:
gh-133968: Update PyUnicodeWriter_WriteASCII() documentation (#135297)
The function was added to Python 3.14.
files:
M Doc/c-api/unicode.rst
M Doc/whatsnew/3.15.rst
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 07fdcfd9729ee0..84fee05cb4ce20 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -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)
diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index e5bccf17eb63e2..88e7462f688e70 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -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`)
_______________________________________________
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]