[Python-checkins] python/dist/src/Doc/api abstract.tex,1.8.6.8,1.8.6.9
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Wed, 09 Apr 2003 11:17:20 -0700
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv27605
Modified Files:
Tag: release22-maint
abstract.tex
Log Message:
Backport comments about PyObject_Type() (HEAD revisions 1.24, 1.25).
Index: abstract.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/abstract.tex,v
retrieving revision 1.8.6.8
retrieving revision 1.8.6.9
diff -C2 -d -r1.8.6.8 -r1.8.6.9
*** abstract.tex 6 Dec 2002 10:17:35 -0000 1.8.6.8
--- abstract.tex 9 Apr 2003 18:17:18 -0000 1.8.6.9
***************
*** 297,303 ****
When \var{o} is non-\NULL, returns a type object corresponding to
the object type of object \var{o}. On failure, raises
! \exception{SystemError} and returns \NULL. This is equivalent to
! the Python expression \code{type(\var{o})}.
! \bifuncindex{type}
\end{cfuncdesc}
--- 297,307 ----
When \var{o} is non-\NULL, returns a type object corresponding to
the object type of object \var{o}. On failure, raises
! \exception{SystemError} and returns \NULL.\bifuncindex{type}
! This is equivalent to the Python expression \code{type(\var{o})}.
! This function increments the reference count of the return value.
! There's really no reason to use this function instead of the
! common expression \code{\var{o}->ob_type}, which returns a pointer
! of type \ctype{PyTypeObject*}, except when the incremented reference
! count is needed.
\end{cfuncdesc}