diff options
author | Fred Drake <fdrake@acm.org> | 2000-03-31 18:22:38 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-03-31 18:22:38 (GMT) |
commit | ddc6c276b732c61b98bd604b2e73004b13fa5346 (patch) | |
tree | d397353651fda0cef38654349c2bc4c385f572b1 /Doc/api | |
parent | 38d062d02290f71acf8519f9f0fc45df8f72d24a (diff) | |
download | cpython-ddc6c276b732c61b98bd604b2e73004b13fa5346.zip cpython-ddc6c276b732c61b98bd604b2e73004b13fa5346.tar.gz cpython-ddc6c276b732c61b98bd604b2e73004b13fa5346.tar.bz2 |
Improve explanation of reference counts for PyString_Concat().
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/api.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex index d67085a..24a0a5e 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -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. |