mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Improve explanation of reference counts for PyString_Concat().
This commit is contained in:
parent
38d062d022
commit
ddc6c276b7
1 changed files with 3 additions and 2 deletions
|
|
@ -1791,8 +1791,9 @@ Resturns a \NULL{} terminated representation of the contents of \var{string}.
|
||||||
\begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
|
\begin{cfuncdesc}{void}{PyString_Concat}{PyObject **string,
|
||||||
PyObject *newpart}
|
PyObject *newpart}
|
||||||
Creates a new string object in \var{*string} containing the
|
Creates a new string object in \var{*string} containing the
|
||||||
contents of \var{newpart} appended to \var{string}. The old value of
|
contents of \var{newpart} appended to \var{string}; the caller will
|
||||||
\var{string} have its reference count decremented. If the new string
|
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
|
cannot be created, the old reference to \var{string} will still be
|
||||||
discarded and the value of \var{*string} will be set to
|
discarded and the value of \var{*string} will be set to
|
||||||
\NULL{}; the appropriate exception will be set.
|
\NULL{}; the appropriate exception will be set.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue