[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.59,1.60
Fred Drake
python-dev@python.org
2000年3月31日 13:22:40 -0500
Update of /projects/cvsroot/python/dist/src/Doc/api
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Doc/api
Modified Files:
api.tex
Log Message:
Improve explanation of reference counts for PyString_Concat().
Index: api.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** api.tex 2000年03月30日 22:27:23 1.59
--- api.tex 2000年03月31日 18:22:38 1.60
***************
*** 1792,1797 ****
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
cannot be created, the old reference to \var{string} will still be
discarded and the value of \var{*string} will be set to
--- 1792,1798 ----
PyObject *newpart}
Creates a new string object in \var{*string} containing the
! 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