[Python-checkins] CVS: python/dist/src/Doc/api exceptions.tex,1.1,1.2
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 03 Dec 2001 08:36:45 -0800
Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv28145/api
Modified Files:
exceptions.tex
Log Message:
PyErr_Format() does not return a new reference; it always returns NULL.
This closes SF bug #488387.
Index: exceptions.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/exceptions.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exceptions.tex 2001/10/12 19:01:43 1.1
--- exceptions.tex 2001/12/03 16:36:43 1.2
***************
*** 122,130 ****
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
const char *format, \moreargs}
! This function sets the error indicator. \var{exception} should be a
! Python exception (string or class, not an instance). \var{format}
! should be a string, containing format codes, similar to
! \cfunction{printf()}. The \code{width.precision} before a format
! code is parsed, but the width part is ignored.
\begin{tableii}{c|l}{character}{Character}{Meaning}
--- 122,130 ----
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
const char *format, \moreargs}
! This function sets the error indicator and returns \NULL..
! \var{exception} should be a Python exception (string or class, not
! an instance). \var{format} should be a string, containing format
! codes, similar to \cfunction{printf()}. The \code{width.precision}
! before a format code is parsed, but the width part is ignored.
\begin{tableii}{c|l}{character}{Character}{Meaning}
***************
*** 138,143 ****
string to be copied as-is to the result string, and any extra
arguments discarded.
-
- A new reference is returned, which is owned by the caller.
\end{cfuncdesc}
--- 138,141 ----