]> granicus.if.org Git - python/commitdiff
Improve explanation of reference counts for PyString_Concat().
authorFred Drake <fdrake@acm.org>
Fri, 31 Mar 2000 18:22:38 +0000 (18:22 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 31 Mar 2000 18:22:38 +0000 (18:22 +0000)
Doc/api/api.tex

index d67085abaf9046e8a51ceec1a378a84201c9d601..24a0a5ef3145218b5476478483b13b6bc07cb802 100644 (file)
@@ -1791,8 +1791,9 @@ Resturns a \NULL{} terminated representation of the contents of \var{string}.
 \begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
                                          PyObject *newpart}
 Creates a new string object in \var{*string} containing the
-contents of \var{newpart} appended to \var{string}.  The old value of
-\var{string} have its reference count decremented.  If the new string
+contents of \var{newpart} appended to \var{string}; the caller will
+own the new reference.  The reference to the old value of \var{string}
+will be stolen.  If the new string
 cannot be created, the old reference to \var{string} will still be
 discarded and the value of \var{*string} will be set to
 \NULL{}; the appropriate exception will be set.