]> granicus.if.org Git - python/commitdiff
Be explicit about the reference count of the original value of the
authorFred Drake <fdrake@acm.org>
Mon, 15 Feb 1999 20:15:39 +0000 (20:15 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 15 Feb 1999 20:15:39 +0000 (20:15 +0000)
first parameter to PyString_Concat().

Doc/api/api.tex

index 58c2f45df717e69255561f7c11dc6b3b1bd9c781..02e31c925bb40b47a6fa50bcd7470df0a06b1dcb 100644 (file)
@@ -1737,8 +1737,12 @@ 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}.
+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
+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.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{void}{PyString_ConcatAndDel}{PyObject **string,