File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1588,6 +1588,11 @@ object.
1588
1588
1589
1589
Create a Unicode writer instance.
1590
1590
1591
+ *length* must be greater than or equal to ``0``.
1592
+
1593
+ If *length* is greater than ``0``, preallocate an internal buffer of
1594
+ *length* characters.
1595
+
1591
1596
Set an exception and return ``NULL`` on error.
1592
1597
1593
1598
.. c:function:: PyObject* PyUnicodeWriter_Finish(PyUnicodeWriter *writer)
@@ -1596,12 +1601,16 @@ object.
1596
1601
1597
1602
Set an exception and return ``NULL `` on error.
1598
1603
1604
+ The writer instance is invalid after this call.
1605
+
1599
1606
.. c :function :: void PyUnicodeWriter_Discard (PyUnicodeWriter *writer)
1600
1607
1601
1608
Discard the internal Unicode buffer and destroy the writer instance.
1602
1609
1603
1610
If *writer * is ``NULL ``, no operation is performed.
1604
1611
1612
+ The writer instance is invalid after this call.
1613
+
1605
1614
.. c :function :: int PyUnicodeWriter_WriteChar (PyUnicodeWriter *writer, Py_UCS4 ch)
1606
1615
1607
1616
Write the single Unicode character *ch * into *writer *.
You can’t perform that action at this time.
0 commit comments