diff options
author | Victor Stinner <vstinner@python.org> | 2024-10-09 23:32:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 23:32:02 (GMT) |
commit | 1b2a5485f94ccbe43a45eb9990a5649ae3d2499e (patch) | |
tree | 5d040d7b15cbd20640f6b60141be831e52835255 /Doc | |
parent | 9ad55e85d78c5338b1ad170e614345652bd1b651 (diff) | |
download | cpython-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.rst | 2 |
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*. |