From: Serhiy Storchaka Date: Sun, 22 Mar 2026 07:29:04 +0000 (+0200) Subject: Update docs for gh-146056 (GH-146213) X-Git-Tag: v3.15.0a8~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3776aba20482a24096e8760e8a32d13b95d51492;p=thirdparty%2FPython%2Fcpython.git Update docs for gh-146056 (GH-146213) --- diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 3a9b34b59226..679823948e73 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -1855,8 +1855,6 @@ object. On success, return ``0``. On error, set an exception, leave the writer unchanged, and return ``-1``. - .. versionadded:: 3.14 - .. c:function:: int PyUnicodeWriter_WriteWideChar(PyUnicodeWriter *writer, const wchar_t *str, Py_ssize_t size) Write the wide string *str* into *writer*. @@ -1892,6 +1890,10 @@ object. On success, return ``0``. On error, set an exception, leave the writer unchanged, and return ``-1``. + .. versionchanged:: 3.14.4 + + Added support for ``NULL``. + .. c:function:: int PyUnicodeWriter_WriteSubstring(PyUnicodeWriter *writer, PyObject *str, Py_ssize_t start, Py_ssize_t end) Write the substring ``str[start:end]`` into *writer*. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2026-03-18-18-52-00.gh-issue-146056.r1tVSo.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-18-18-52-00.gh-issue-146056.r1tVSo.rst index 67502657047d..ab6eab2c968e 100644 --- a/Misc/NEWS.d/next/Core_and_Builtins/2026-03-18-18-52-00.gh-issue-146056.r1tVSo.rst +++ b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-18-18-52-00.gh-issue-146056.r1tVSo.rst @@ -1 +1 @@ -Fix :meth:`!list.__repr__` for lists containing ``NULL``\ s. +Fix :func:`repr` for lists and tuples containing ``NULL``\ s.