Mercurial > cpython-lru_cache-weakref
diff Doc/api/api.tex @ 12200:42f21e47b486 legacy-trunk
Improve explanation of reference counts for PyString_Concat().
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 31 Mar 2000 18:22:38 +0000 |
| parents | e6214ad2a60c |
| children | 3e9a1c1a9f56 |
line wrap: on
line diff
--- a/Doc/api/api.tex Fri Mar 31 18:10:17 2000 +0000 +++ b/Doc/api/api.tex Fri Mar 31 18:22:38 2000 +0000 @@ -1791,8 +1791,9 @@ \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.
