gh-125196: PyUnicodeWriter_Discard(NULL) does nothing (#125222)

This commit is contained in:
Victor Stinner 2024-10-10 01:32:02 +02:00 committed by GitHub
parent 9ad55e85d7
commit 1b2a5485f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -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*.