Skip to content

Commit aaad2e8

Browse files
authored
gh-133968: Update PyUnicodeWriter_WriteASCII() documentation (#135297)
The function was added to Python 3.14.
1 parent 0045100 commit aaad2e8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ object.
18271827
On success, return ``0``.
18281828
On error, set an exception, leave the writer unchanged, and return ``-1``.
18291829
1830-
.. versionadded:: next
1830+
.. versionadded:: 3.14
18311831
18321832
.. c:function:: int PyUnicodeWriter_WriteWideChar(PyUnicodeWriter *writer, const wchar_t *str, Py_ssize_t size)
18331833

Doc/whatsnew/3.15.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,6 @@ New features
298298
functions as replacements for :c:func:`PySys_GetObject`.
299299
(Contributed by Serhiy Storchaka in :gh:`108512`.)
300300

301-
* Add :c:func:`PyUnicodeWriter_WriteASCII` function to write an ASCII string
302-
into a :c:type:`PyUnicodeWriter`. The function is faster than
303-
:c:func:`PyUnicodeWriter_WriteUTF8`, but has an undefined behavior if the
304-
input string contains non-ASCII characters.
305-
(Contributed by Victor Stinner in :gh:`133968`.)
306-
307301
* Add :c:type:`PyUnstable_Unicode_GET_CACHED_HASH` to get the cached hash of
308302
a string. See the documentation for caveats.
309303
(Contributed by Petr Viktorin in :gh:`131510`)

0 commit comments

Comments
 (0)