Clarify documentation for PyErr_SetObject() to describe the reference

count behavior.
This commit is contained in:
Fred Drake 2002-09-24 16:45:16 +00:00
parent 117ac85c4e
commit 2f93644c1d

View file

@ -124,7 +124,7 @@ for each thread.
\begin{cfuncdesc}{void}{PyErr_SetObject}{PyObject *type, PyObject *value} \begin{cfuncdesc}{void}{PyErr_SetObject}{PyObject *type, PyObject *value}
This function is similar to \cfunction{PyErr_SetString()} but lets This function is similar to \cfunction{PyErr_SetString()} but lets
you specify an arbitrary Python object for the ``value'' of the you specify an arbitrary Python object for the ``value'' of the
exception. You need not increment its reference count. exception. One reference to \var{value} is stolen.
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception, \begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,