[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.106,1.107
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 12 Feb 2001 09:38:21 -0800
Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv27776/api
Modified Files:
api.tex
Log Message:
PyTuple_*() functions take PyObject* parameters, not PyTupleObject* values.
This closes SF bug #131304.
Index: api.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -r1.106 -r1.107
*** api.tex 2001/02/03 01:11:26 1.106
--- api.tex 2001/02/12 17:38:18 1.107
***************
*** 3089,3098 ****
\end{cfuncdesc}
! \begin{cfuncdesc}{int}{PyTuple_Size}{PyTupleObject *p}
Takes a pointer to a tuple object, and returns the size
of that tuple.
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GetItem}{PyTupleObject *p, int pos}
Returns the object at position \var{pos} in the tuple pointed
to by \var{p}. If \var{pos} is out of bounds, returns \NULL{} and
--- 3089,3098 ----
\end{cfuncdesc}
! \begin{cfuncdesc}{int}{PyTuple_Size}{PyObject *p}
Takes a pointer to a tuple object, and returns the size
of that tuple.
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GetItem}{PyObject *p, int pos}
Returns the object at position \var{pos} in the tuple pointed
to by \var{p}. If \var{pos} is out of bounds, returns \NULL{} and
***************
*** 3100,3110 ****
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GET_ITEM}{PyTupleObject *p, int pos}
Does the same, but does no checking of its arguments.
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GetSlice}{PyTupleObject *p,
! int low,
! int high}
Takes a slice of the tuple pointed to by \var{p} from
\var{low} to \var{high} and returns it as a new tuple.
--- 3100,3109 ----
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GET_ITEM}{PyObject *p, int pos}
Does the same, but does no checking of its arguments.
\end{cfuncdesc}
! \begin{cfuncdesc}{PyObject*}{PyTuple_GetSlice}{PyObject *p,
! int low, int high}
Takes a slice of the tuple pointed to by \var{p} from
\var{low} to \var{high} and returns it as a new tuple.
***************
*** 3125,3129 ****
\end{cfuncdesc}
! \begin{cfuncdesc}{int}{_PyTuple_Resize}{PyTupleObject *p,
int newsize, int last_is_sticky}
Can be used to resize a tuple. \var{newsize} will be the new length
--- 3124,3128 ----
\end{cfuncdesc}
! \begin{cfuncdesc}{int}{_PyTuple_Resize}{PyObject **p,
int newsize, int last_is_sticky}
Can be used to resize a tuple. \var{newsize} will be the new length