[Python-checkins] CVS: python/dist/src/Doc/ext ext.tex,1.76,1.77
Fred L. Drake
python-dev@python.org
Wed, 28 Jun 2000 09:15:10 -0700
Update of /cvsroot/python/python/dist/src/Doc/ext
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18530/ext
Modified Files:
ext.tex
Log Message:
Enhanced memory-reference information in the description of Py_BuildValue(),
based on response from Frank Stajano <fstajano@uk.research.att.com>.
Index: ext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/ext.tex,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -r1.76 -r1.77
*** ext.tex 2000/06/28 15:32:29 1.76
--- ext.tex 2000/06/28 16:15:08 1.77
***************
*** 1005,1009 ****
objects, as for the \samp{s} and \samp{s\#} formats, the required data
is copied. Buffers provided by the caller are never referenced by the
! objects created by \cfunction{Py_BuildValue()}.
In the following description, the quoted form is the format unit; the
--- 1005,1013 ----
objects, as for the \samp{s} and \samp{s\#} formats, the required data
is copied. Buffers provided by the caller are never referenced by the
! objects created by \cfunction{Py_BuildValue()}. In other words, if
! your code invokes \cfunction{malloc()} and passes the allocated memory
! to \cfunction{Py_BuildValue()}, your code is responsible for
! calling \cfunction{free()} for that memory once
! \cfunction{Py_BuildValue()} returns.
In the following description, the quoted form is the format unit; the