Skip to content

Commit 24129a0

Browse files
rruuaanngencukou
andauthored
Change doc
Co-authored-by: Petr Viktorin <[email protected]>
1 parent ccc56d4 commit 24129a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/c-api/unicode.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,14 @@ APIs:
608608
609609
610610
.. c:function:: void PyUnicode_Append(PyObject **p_left, PyObject *right)
611-
612611
Append the string *right* to the end of *p_left*.
613-
*p_left* must point to a :term:`strong reference` to a Unicode object.
612+
*p_left* must point to a :term:`strong reference` to a Unicode object;
613+
:c:func:`!PyUnicode_Append` releases ("steals") this reference.
614614
615615
On error, set *\*p_left* to ``NULL`` and set an exception.
616616
617+
On sucess, set *\*p_left* to a new strong reference to the result.
618+
617619
618620
.. c:function:: void PyUnicode_AppendAndDel(PyObject **p_left, PyObject *right)
619621

0 commit comments

Comments
 (0)