summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-10-09 23:32:02 (GMT)
committerGitHub <noreply@github.com>2024-10-09 23:32:02 (GMT)
commit1b2a5485f94ccbe43a45eb9990a5649ae3d2499e (patch)
tree5d040d7b15cbd20640f6b60141be831e52835255 /Doc
parent9ad55e85d78c5338b1ad170e614345652bd1b651 (diff)
downloadcpython-1b2a5485f94ccbe43a45eb9990a5649ae3d2499e.zip
cpython-1b2a5485f94ccbe43a45eb9990a5649ae3d2499e.tar.gz
cpython-1b2a5485f94ccbe43a45eb9990a5649ae3d2499e.tar.bz2
gh-125196: PyUnicodeWriter_Discard(NULL) does nothing (#125222)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/unicode.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index f5704cf..4daf9e9 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1600,6 +1600,8 @@ object.
Discard the internal Unicode buffer and destroy the writer instance.
+ If *writer* is ``NULL``, no operation is performed.
+
.. c:function:: int PyUnicodeWriter_WriteChar(PyUnicodeWriter *writer, Py_UCS4 ch)
Write the single Unicode character *ch* into *writer*.